public
Description: Friendly neighborhood wrapper around the MySQL C API.
Homepage:
Clone URL: git://github.com/mleung/old_school.git
old_school / utilities.c
100644 9 lines (6 sloc) 0.199 kb
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <stdlib.h>
 
bool valid_string(char *str) {
    // TODO: Put in a trim function so when we test strlen, it'll be trimmed.
    return (str != NULL) && (strlen(str) > 0);
}