Lely core libraries
2.3.4
|
This file is part of the C11 and POSIX compatibility library. More...
#include "libc.h"
#include <lely/libc/stdio.h>
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | asprintf (char **strp, const char *fmt,...) |
Equivalent to sprintf() , except that it allocates a string large enough to hold the output, including the terminating null byte. More... | |
int | vasprintf (char **strp, const char *fmt, va_list ap) |
Equivalent to vsprintf() , except that it allocates a string large enough to hold the output, including the terminating null byte. More... | |
This file is part of the C11 and POSIX compatibility library.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stdio.c.
int asprintf | ( | char ** | strp, |
const char * | fmt, | ||
... | |||
) |
Equivalent to sprintf()
, except that it allocates a string large enough to hold the output, including the terminating null byte.
strp | the address of a value which, on success, contains a pointer to the allocated string. This pointer SHOULD be passed to free() to release the allocated storage. |
fmt | a printf-style format string. |
... | an optional list of arguments to be printed according to fmt. |
int vasprintf | ( | char ** | strp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Equivalent to vsprintf()
, except that it allocates a string large enough to hold the output, including the terminating null byte.
strp | the address of a value which, on success, contains a pointer to the allocated string. This pointer SHOULD be passed to free() to release the allocated storage. |
fmt | a printf-style format string. |
ap | the list with arguments to be printed according to fmt. |