ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/misc.C
(Generate patch)

Comparing rxvt-unicode/src/misc.C (file contents):
Revision 1.46 by ayin, Sat Sep 8 21:25:56 2007 UTC vs.
Revision 1.47 by ayin, Sat Sep 8 21:31:27 2007 UTC

235} 235}
236 236
237/* 237/*
238 * remove leading/trailing space in place. 238 * remove leading/trailing space in place.
239 */ 239 */
240char * 240char *
241rxvt_strtrim (char *str) NOTHROW 241rxvt_strtrim (char *str) NOTHROW
242{ 242{
243 char *r, *s; 243 char *r, *s;
244 244
245 if (!str || !*str) /* shortcut */ 245 if (!str || !*str) /* shortcut */
262} 262}
263 263
264/* 264/*
265 * Split a comma-separated string into an array, stripping leading and 265 * Split a comma-separated string into an array, stripping leading and
266 * trailing spaces from each entry. Empty strings are properly returned 266 * trailing spaces from each entry. Empty strings are properly returned
267 * Caller should free each entry and array when done
268 */ 267 */
269char ** 268char **
270rxvt_splitcommastring (const char *cs) NOTHROW 269rxvt_splitcommastring (const char *cs) NOTHROW
271{ 270{
272 int l, n, p; 271 int l, n, p;
273 const char *s, *t; 272 const char *s, *t;
274 char **ret; 273 char **ret;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines