Sha256: a4a2619a08579dcea3c3dc2a72d867b293aef7eff01ffd0d5bf4cd2275a5e75d
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
/* Added methods for string manipulation */ #ifndef STRING_EXTRAS_H #define STRING_EXTRAS_H #include "deps/uthash/utstring.h" #ifdef __cplusplus extern "C" { #endif // Remove the final character in a string extern void remove_last_char(char* str); // Remove the first character in a string extern void remove_first_char(char* str); // Duplicates an immutable string extern char * dupe_string(const char * str); // Duplicates an immutable string (up to n bytes) extern char * dupe_string_n(const char * s, size_t n); #ifdef __cplusplus } #endif #endif /* ! STRING_EXTRAS_H */
Version data entries
3 entries across 3 versions & 1 rubygems