Changes in util.c [7b89e8c:6646fdb]
Legend:
- Unmodified
- Added
- Removed
-
util.c
r7b89e8c r6646fdb 262 262 CALLER_OWN char *owl_arg_quote(const char *arg) 263 263 { 264 GString *buf = g_string_new(""); 264 GString *buf = g_string_new("");; 265 265 owl_string_append_quoted_arg(buf, arg); 266 return g_string_free(buf, false);267 }268 269 /* Returns a quoted version of argv. owl_parseline on the result should give270 * back the input. */271 CALLER_OWN char *owl_argv_quote(int argc, const char *const *argv)272 {273 int i;274 GString *buf = g_string_new("");275 for (i = 0; i < argc; i++) {276 if (i > 0)277 g_string_append_c(buf, ' ');278 owl_string_append_quoted_arg(buf, argv[i]);279 }280 266 return g_string_free(buf, false); 281 267 }
Note: See TracChangeset
for help on using the changeset viewer.