"Fossies" - the Fresh Open Source Software Archive

Member "libspf2-1.2.10/src/libreplace/__ns_msg_getflag.c" (28 Jan 2012, 310 Bytes) of package /linux/privat/libspf2-1.2.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. For more information about "__ns_msg_getflag.c" see the Fossies "Dox" file reference documentation.

    1 /* #include "port_before.h" */
    2 #include "config.h"
    3 
    4 #ifdef STDC_HEADERS
    5 # include <stdio.h>
    6 #endif
    7 
    8 #include <sys/types.h>
    9 
   10 #include <netinet/in.h>
   11 #include "arpa_nameser.h"
   12 
   13 
   14 
   15 int __ns_msg_getflag(ns_msg handle, int flag) {
   16     return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
   17 }
   18