String-related utility functions. More...
#include "skinkit.h"#include "hqnstrutils.h"#include "hqmemcpy.h"#include "mem.h"#include "swcopyf.h"#include <locale.h>#include <math.h>#include <stdlib.h>#include <string.h>Functions | |
| const char * | doubleToStr (char *pStr, int32 nSize, double fVal) |
Convert a double to string using the C locale. More... | |
| double | strToDouble (char *pStr, char **ppEndStr) |
Implementation of strtod() using the C locale. More... | |
| uint8 * | utl_strdup (uint8 *str) |
| Simple version of strdup() since some platforms don't have it. More... | |
String-related utility functions.
| const char* doubleToStr | ( | char * | pStr, |
| int32 | nSize, | ||
| double | fVal | ||
| ) |
Convert a double to string using the C locale.
| [in] | pStr | The buffer to contain the string |
| [in] | nSize | The size of the preallocated pStr buffer |
| [in] | fVal | The value to convert |
| double strToDouble | ( | char * | pStr, |
| char ** | ppEndStr | ||
| ) |
Implementation of strtod() using the C locale.
| [in] | pStr | Null-terminated string to convert |
| [out] | ppEndStr | Pointer to character that stops scan |
+/- HUGE_VAL.strtod_l(pStr, ppEndStr, NULL) which is available as part of the Standard C library but not available on all platforms. Simple version of strdup() since some platforms don't have it.
| [in] | str | Zero-terminated string to duplicate. |
NULL if memory could not be allocated. If this function succeeds, it is the caller's responsibility to free the returned pointer using MemFree().