Browse Source

Add max(x, y) macro.

master
Richard Nyberg 18 years ago
parent
commit
d5700c2f20
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      misc/subr.h

+ 2
- 0
misc/subr.h View File

@@ -4,7 +4,9 @@
#include <stdio.h>
#include <stdarg.h>

#define max(x, y) ((x) >= (y) ? (x) : (y))
#define min(x, y) ((x) <= (y) ? (x) : (y))

#define SHAHEXSIZE 41

int set_nonblocking(int fd);


Loading…
Cancel
Save