home *** CD-ROM | disk | FTP | other *** search
- // Chap02_1.c
- #include <ctype.h>
- void upperCase(char *pS)
- {
- while (*pS)
- {
- if (islower(*pS))
- {
- *pS = toupper(*pS);
- }
- pS++;
- }
- }
-
- void fn()
- {
- char *pString;
- pString = "Davis";
- upperCase(pString);
- }
- int main()
- {
- fn();
- return 0;
- }
-