|
|
1.1 ! root 1: /* sdp:uppercase.c 1.4 */ ! 2: #include "sccsid.h" ! 3: VERSION(@(#)sdp:uppercase.c 1.4) ! 4: ! 5: ! 6: /********** uppercase.c *********/ ! 7: ! 8: /* simply a function to make sure a string is all uppercase ! 9: */ ! 10: #include <ctype.h> ! 11: ! 12: uppercase(str) ! 13: register char *str; ! 14: { ! 15: register int i; ! 16: for (i=0; *str != '\0'; i++, str++) ! 17: if (islower(*str)) *str = toupper(*str); ! 18: return(i); ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.