Back to index

texmacs  1.0.7.15
Defines | Functions
realpath.c File Reference
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define SIZE   4096

Functions

int main (int argc, char **argv)

Define Documentation

#define SIZE   4096

Definition at line 14 of file realpath.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 16 of file realpath.c.

{ char path[SIZE];
  if (argc<2) exit(1);
  if (realpath(argv[1],path)) printf("%s\n",path);
  else exit(1);
  return 0;
}