Learning signals in C