src/util/strings_op.c File Reference src/util/strings_op.c concat #include <stdlib.h>#include <stdarg.h>#include <string.h> Functions char * util_concat (const char *str,...) https://sourceware.org/glibc/manual/latest/html_mono/libc.html#Variadic-Prototypes
Detailed Description concat This file is part of Gem-graph. Programmers using the strcat function can easily be recognized as lazy and reckless. from The GNU C Library (glibc) manual (5.5 Concatenating Strings) Whenever a programmer feels the need to use strcat she or he should think twice and look through the program to see whether the code cannot be rewritten to take advantage of already calculated results. The related functions strlcat, strncat, wcscat and wcsncat are almost always unnecessary, too. Again: it is almost always unnecessary to use functions like strcat. 😄️ Before calling vprintf or the other functions listed in this section, you must call va_start (see Variadic Functions) to initialize a pointer to the variable arguments. Then you can call va_arg to fetch the arguments that you want to handle yourself. This advances the pointer past those arguments. Once your va_list pointer is pointing at the argument of your choice, you are ready to call vprintf. That argument and all subsequent arguments that were passed to your function are used by vprintf along with the template that you specified separately. A.2 Variadic Functions ISO C defines a syntax for declaring a function to take a variable number or type of arguments. (Such functions are referred to as varargs functions or variadic functions.) However, the language itself provides no mechanism for such functions to access their non-required arguments; instead, you use the variable arguments macros defined in stdarg.h. This section describes how to declare variadic functions, how to write them, and how to call them properly.
Function Documentation
util_concat() util_concatstrings_op.c strings_op.cutil_concat char * util_concat (const char * str, ...) https://sourceware.org/glibc/manual/latest/html_mono/libc.html#Variadic-Prototypes See also (in glibc/manual) > ellipsis (‘…’) A.2.2.2 Receiving the Argument Values Parameters *str ...
Returns *