rendered paste body** Made by david hagege** Login <hagege_d@epita.fr>** ** Started on Wed Oct 11 20:42:41 2006 david hagege** Last update Wed Oct 11 21:08:45 2006 david hagege*/char *my_strcapitalize(char *str){ int h; static char tabl[900]; h = 1; if (str[0] >= 'a' && str[0] <= 122) tabl[0] = str[0] - 32; while (str[h] != '\0') { if ((str[h] >= 65) && (str[h] <= 90)) tabl[h] = str[h] + 32; else if ((str[h - 1] == ' ') && ((str[h] >= 97) && (str[h] <= 'z'))) tabl[h] = str[h] - 32; else if ((str[h - 1] == ';') && ((str[h] >= 'a') && (str[h] <= 'z'))) tabl[h] = str[h] - 32; else if ((str[h - 1] >= '!' && str[h - 1] <= '/')) tabl[h] = str[h] - 32; else if (((str[h] <= 'z') && (str[h] >= 'a'))) tabl[h] = str[h]; else tabl[h] = str[h]; h = h + 1; } return (tabl);}