"Fossies" - the Fresh Open Source Software Archive

Member "deheader-1.10/test/access.c" (30 Jan 2023, 338 Bytes) of package /linux/privat/deheader-1.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Items: access(
    3  * Standardized-By: SuS
    4  * Not-Detected-by: gcc-4.4.3 + Linux
    5  */
    6 
    7 #include <unistd.h>
    8 
    9 main(int arg, char **argv)
   10 {
   11     /* 
   12      * Note: use of a symbolic constant like F_OK *will* 
   13      * cause the compile to fail and the requrement
   14      * for <unistd.h> to be tetected.
   15      */
   16     (void)access("/dev/null", 0);
   17 }