WINLFN(3)                libwin Reference               WINLFN(3)


NAME
       winlfn - libwin long filename (LFN) functions

SYNOPSIS
       #include <libwin.h>

       int issfnchar (int c);
       int islfnchar (int c);

       int w95_lfntosfn (const char *lfn, char *sfn);

DESCRIPTION
       issfnchar() and islfnchar() check to see whether the char-
       acter c is a valid character in short filenames (SFN)  and
       long   filenames,   respectively.   These  functions  work
       whether or not the program is running under Windows.

       w95_lfntosfn() returns the LFN corresponding to the speci-
       fied  SFN.  This  function only works under Windows '95 or
       with a TSR that implements Windows '95 interrupt 0x21  LFN
       calls (e.g. Caldera's OpenDOS LFN TSR).

RETURN VALUES
       issfnchar()  and  islfnchar() return 1 if the character is
       valid in that type of filename.

       w95_lfntosfn()  returns  0  if  successful,  otherwise  it
       returns an error code (see below).

ERRORS
       w95_lfntosfn():


              2 Invalid component in directory path or drive let-
                ter only

              3 Malformed path or invalid drive letter

SEE ALSO
       libwin(7)

















libwin 0.1.5            22 September 2002                       1



Page created on Sun Sep 29 21:12:26 2002 by m2h.pl, a man page to HTML convertor.
m2h.pl Version 1.3.2, Copyright 1997-2002 by Richard Dawe <webmaster@phekda.org>