Go to the source code of this file.
Defines | |
| #define | INC_OSKI_SPRINTF_H |
| oski/sprintf.h included. | |
Functions | |
| char * | oski_StringPrintf (const char *fmt,...) |
| Safe implementation of 'sprintf' which returns a newly allocated string of the appropriate length to contain the desired formatted string. | |
| #define INC_OSKI_SPRINTF_H |
oski/sprintf.h included.
| char* oski_StringPrintf | ( | const char * | fmt, | |
| ... | ||||
| ) |
Safe implementation of 'sprintf' which returns a newly allocated string of the appropriate length to contain the desired formatted string.
Safe implementation of 'sprintf' which returns a newly allocated string of the appropriate length to contain the desired formatted string.
Returns NULL on error. Otherwise, returns a newly allocated string containing the formatted output.
Here, we use 'len-1' to include the terminating NULL character.
References oski_Free, oski_Malloc, oski_StringPrintf(), and oski_ZeroMem().
Referenced by BCSR_GetKernel(), MBCSR_GetSubmatKernel(), oski_MakeModuleDesc(), oski_MakeModuleName(), and oski_StringPrintf().
1.5.9