| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.10

 

strupc

#include "sflstr.h"
char *
strupc (
    char *string)

Synopsis

Converts all alphabetic characters in string to uppercase, stopping at the final null character. Returns string. If string is null, returns null. We do not call this function strupr because that is already provided by some systems (but not by ANSI C).

Source Code - (sflstr.c)

{
    char *scan;

    if (string)
      {
        scan = string;
        while (*scan)
          {
            *scan = (char) toupper (*scan);
            scan++;
          }
      }
    return (string);
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation