Concatenate arguments.
- Parameters
-
| args | Argument list (NULL-terminated) |
- Return values
-
| string | Concatenated arguments |
The returned string is allocated with malloc(). The caller is responsible for eventually free()ing this string.
Definition at line 359 of file exec.c.
359 {
360 char **arg;
363 char *ptr;
364
365
367 for ( arg = args ; *arg ; arg++ )
369
370
372 if ( ! string )
374
375
377 for ( arg = args ; *arg ; arg++ ) {
379 ( ( arg == args ) ? "" : " " ), *arg );
380 }
382
384}
#define NULL
NULL pointer (VOID *)
#define assert(condition)
Assert a condition at run-time.
void * zalloc(size_t size)
Allocate cleared memory.
#define sprintf(buf, fmt,...)
Write a formatted string to a buffer.
size_t strlen(const char *src)
Get length of string.
References assert, len, NULL, sprintf, string, strlen(), and zalloc().
Referenced by dynui_exec(), echo_exec(), imgsingle_exec(), item_exec(), param_exec(), prompt_exec(), and set_value().