aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index db672da87..76125b92e 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -69,29 +69,6 @@ GNUNET_STRINGS_buffer_fill (char *buffer,
69} 69}
70 70
71 71
72char *
73GNUNET_STRINGS_pp2s (const struct GNUNET_PeerIdentity *pids,
74 unsigned int num_pids)
75{
76 char *buf;
77 size_t off;
78 size_t plen = num_pids * 5 + 1;
79
80 GNUNET_assert (num_pids < UINT32_MAX / 5);
81 off = 0;
82 buf = GNUNET_malloc (plen);
83 for (unsigned int i = 0; i < num_pids; i++)
84 {
85 off += GNUNET_snprintf (&buf[off],
86 plen - off,
87 "%s%s",
88 GNUNET_i2s (&pids[i]),
89 (i == num_pids - 1) ? "" : "-");
90 }
91 return buf;
92}
93
94
95unsigned int 72unsigned int
96GNUNET_STRINGS_buffer_tokenize (const char *buffer, 73GNUNET_STRINGS_buffer_tokenize (const char *buffer,
97 size_t size, 74 size_t size,