/*
 * Read the contents of the named symbolic links
 */
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
char buf[PATH_MAX + 1];
 
int main( int argc, char** argv )
{
  int len;
  int ecode = 0;
 
    if(( len = readlink("/proc/self/exefile", buf, PATH_MAX )) == -1) 
    {
      ecode++;
      printf("Is is an error\n");
    }
 
  return( ecode );
}
