test_realpath.c (200B)
1 #include "common.h" 2 3 #include <stdlib.h> 4 #include <stdio.h> 5 6 int main(int argc, char** argv) { 7 char buf[PATH_MAX]; 8 char* rpath = realpath("/root/../", buf); 9 printf("%s\n", rpath); 10 return 0; 11 }
fortify-headersstandalone fortify-source implementation | |
| git clone git://git.2f30.org/fortify-headers | |
| Log | Files | Refs | README | LICENSE |