Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 20th, 2013  |  syntax: C  |  size: 0.32 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. int
  2. Select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
  3.        struct timeval *timeout)
  4. {
  5.         int             n;
  6.  
  7.         if ( (n = select(nfds, readfds, writefds, exceptfds, timeout)) < 0)
  8.                 err_sys("select error");
  9.         return(n);              /* can return 0 on timeout */
  10. }
clone this paste RAW Paste Data