SMS: C & data structures