Changes in util.c [6646fdb:7b89e8c]
Legend:
- Unmodified
- Added
- Removed
-
util.c
r6646fdb r7b89e8c 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 give 270 * 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 } 266 280 return g_string_free(buf, false); 267 281 }
Note: See TracChangeset
for help on using the changeset viewer.