Contact: aviboots(AT)netvision.net.il
39,966 questions
51,908 answers
573 users
#include <stdio.h> void space2underscore(char *s) { while(*(s++)) { if (*s == ' ') *s = '_'; } } int main() { char s[] = "c c++ java php"; space2underscore(s); puts(s); return 0; } /* run: c_c++_java_php */