|
Guardtime KSI c SDK
|
Functions | |
| size_t | KSI_snprintf (char *buf, size_t n, const char *format,...) |
| size_t | KSI_vsnprintf (char *buf, size_t n, const char *format, va_list va) |
| char * | KSI_strncpy (char *destination, const char *source, size_t n) |
| int | KSI_strdup (const char *from, char **to) |
| time_t | KSI_CalendarTimeToUnixTime (struct tm *time) |
| int | KSI_strcasecmp (const char *s1, const char *s2) |
| time_t KSI_CalendarTimeToUnixTime | ( | struct tm * | time | ) |
Platform independent modified version of mktime that takes calendar time interpreted as UTC time (local time zone is ignored) as input and converts the value to Unix time.
| [in] | time | Pointer to struct tm containing calendar time broken into its components. |
| size_t KSI_snprintf | ( | char * | buf, |
| size_t | n, | ||
| const char * | format, | ||
| ... | |||
| ) |
Platform independent version of snprintf.
| [in] | buf | Pointer to buffer. |
| [in] | n | Maximum number of bytes to be written into buffer. Includes terminating NUL character. |
| [in] | format | Format string. |
| [in] | ... | Extra parameters for formatting. |
| int KSI_strcasecmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Platform independent case-insensitive string compare.
| [in] | s1 | String 1 to be compared. |
| [in] | s2 | String 2 to be compared. |
| int KSI_strdup | ( | const char * | from, |
| char ** | to | ||
| ) |
Platform independent string duplicate function. It will create a new null-terminated string from the initial version.
| [in] | from | String to be copied. |
| [in] | to | Pointer to the receiving pointer. |
| char* KSI_strncpy | ( | char * | destination, |
| const char * | source, | ||
| size_t | n | ||
| ) |
Platform independent version of strncpy that guarantees NULL terminated destination. To copy N characters from source to destination n and size of destination must be N+1.
| [in] | destination | Pointer to destination. |
| [in] | source | Pointer to source. |
| [in] | n | Maximum number of characters to be copied including terminating NUL |
| size_t KSI_vsnprintf | ( | char * | buf, |
| size_t | n, | ||
| const char * | format, | ||
| va_list | va | ||
| ) |
Platform independent version of vsnprintf.
| [in] | buf | Pointer to buffer. |
| [in] | n | Maximum number of bytes to be written into buffer. Includes terminating NUL character. |
| [in] | format | Format string. |
| [in] | va | variable list. |
1.8.14