Data manipulation functions implemented in C
