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

 

strlwc

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

Synopsis

Converts all alphabetic characters in string to lowercase, stopping at the final null character. Returns string. If string is null, returns null. We do not call this function strlwr 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) tolower (*scan);
            scan++;
          }
      }
    return (string);
}

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