home *** CD-ROM | disk | FTP | other *** search
- /* Sample module to be linked as an .OBJ file into Turbo */
- /* Pascal. Must be compiled with the TURBOC.CFG file in */
- /* Table 4.1. */
-
- #define UpCase(c) ((c) >= 'a' && (c) <= 'z' ? ((c) - 32 : (c))
-
- /* Procedure UpString( Var S : String ); */
- /* Pascal procedure Header and Parameters */
-
- void pascal far UpString( char *s )
- {
- register char *strPtr;
-
- for (strPtr = &s[1]; *strPtr != '\0'; strPtr ++)
- *strPtr = UpCase(*strPtr);
- }
-