delorie.com/djgpp/doc/libc/libc_829.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_truename_sfn

Syntax

 
#include <sys/stat.h>

char * _truename_sfn(const char *path, char *true_path);

Description

_truename_sfn is like _truename, except that it always returns a short filename. See the documentation for _truename for more details (see section _truename).

Return Value

The function returns the pointer to the result. In case of any failure, a NULL pointer is returned, and errno is set.

Portability

ANSI/ISO C No
POSIX No

Example

 
  fprintf(stderr, 
          "True short name of %s is %s\n", path,
	  _truename_sfn(path, (char *)0));

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004