* snprintf - Format a string and place it in a buffer * @buf: The buffer to place the result into * @size: The size of the buffer, including the trailing null space * @fmt: The format string to use * @...: Arguments for the format string */
| 393 | * @...: Arguments for the format string |
| 394 | */ |
| 395 | int acl_snprintf(char * buf, size_t size, const char *fmt, ...) |
| 396 | { |
| 397 | va_list args; |
| 398 | int i; |
| 399 | |
| 400 | va_start(args, fmt); |
| 401 | i=acl_vsnprintf(buf,size,fmt,args); |
| 402 | va_end(args); |
| 403 | return i; |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * vsprintf - Format a string and place it in a buffer |
no test coverage detected
searching dependent graphs…