I have written several string manipulation functions in C. I don't want to have to keep this in my main program module for re-usability. I know that these can be stored in a seperate .c file and a header file created in order to access these functions. What I don't know is exactly how to go about it?
e.g. I have the following four functions
void replace(char *pch_string, char ch_replace_char, char ch_with_char);
void ucase(char *pch_string);
void lcase(char *pch_string);
void trim(char *pch_string);
Can anyone give me a step by step guide as to what I need to put in the header/.c file/calling module to make this work. Also where should the finished .h and .c files be stored. I am developing my code using VC++ 6.0 although once written it will be ported to a UNIX platform.