I don't know which compiler you're working with ... but it should have some kind of library documentation with it... You really should get yourself familiar with it's various functions. Also you would do yourself a favor by spending a bit of time with a good tutorial or book on C... It seems a simple language at first but even 8 years into it, it still surprises me from time to time... Read the pages, do the exercises, one by one. In the end you'll be glad you did.