ucx/string.h

changeset 180
2185f19dcc45
parent 179
ee25d79a4187
child 183
6a694f8f0084
equal deleted inserted replaced
179:ee25d79a4187 180:2185f19dcc45
118 * @return the cumulated length of all strings 118 * @return the cumulated length of all strings
119 */ 119 */
120 size_t sstrnlen(size_t count, sstr_t string, ...); 120 size_t sstrnlen(size_t count, sstr_t string, ...);
121 121
122 /** 122 /**
123 * Concatenates strings.
124 *
125 * @param count the total number of strings to concatenate
126 * @param ... all strings
127 * @return the concatenated string
128 */
129 sstr_t sstrcat(size_t count, sstr_t s1, sstr_t s2, ...);
130 sstr_t sstrcat_a(UcxAllocator *a, size_t count, sstr_t s1, sstr_t s2, ...);
131
132
133 /**
123 * Returns a substring starting at the specified location. 134 * Returns a substring starting at the specified location.
124 * 135 *
125 * <b>Attention:</b> the new string references the same memory area as the 136 * <b>Attention:</b> the new string references the same memory area as the
126 * input string and will <b>NOT</b> be <code>NULL</code>-terminated. 137 * input string and will <b>NOT</b> be <code>NULL</code>-terminated.
127 * Use sstrdup() to get a copy. 138 * Use sstrdup() to get a copy.

mercurial