Functions | |
char * | htmlentities (const char *str) |
Transforms HTML special chars. | |
char ** | file (const char *filename, unsigned int *total) |
Reads entire file into an array. | |
char * | md5 (const char *str) |
Converts a string to MD5 format. |
|
Reads entire file into an array.
char **lines; unsigned int total, i; lines = file("filename.ext", &total); printf("Total of lines: %u\n", total); for (i = 0; i < total; i++) printf("[%u] %s\n", i, lines[i]); for (i = 0; i < total; i++) { if (lines[i]) free(lines[i]); } |
|
Transforms HTML special chars. Transforms chars like '<', '>' and others in HTML form, like '<' and '>'
|
|
Converts a string to MD5 format.
|