vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

getcwd.c (191B)


      1 #include <stdio.h>
      2 #include "syscall.h"
      3 
      4 char *getcwd(char *buf, int size)
      5 {
      6 	char *s = (char*)syscall(VXSYSGETCWD, (int)buf, size, 0, 0, 0);
      7 	if(s == (char*)-1)
      8 		return NULL;
      9 	return s;
     10 }
     11