diff options
| author | Matthias-Christian Ott <ott@enolink.de> | 2008-06-02 20:15:52 +0200 |
|---|---|---|
| committer | Matthias-Christian Ott <ott@enolink.de> | 2008-06-02 20:15:52 +0200 |
| commit | c61b34e8e1883faba38f94b0c6775a47b1267e6f (patch) | |
| tree | 495a2c86f3119158f197a736b27af103f3f41b0e | |
| parent | simplify control flow (diff) | |
| download | st-c61b34e8e1883faba38f94b0c6775a47b1267e6f.tar.gz st-c61b34e8e1883faba38f94b0c6775a47b1267e6f.zip | |
correct LENGTH()
Diffstat (limited to '')
| -rw-r--r-- | std.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <string.h> | 13 | #include <string.h> |
| 14 | #include <unistd.h> | 14 | #include <unistd.h> |
| 15 | 15 | ||
| 16 | #define LENGTH(x) (sizeof (x) / sizeof (x)[0]) | 16 | #define LENGTH(x) (sizeof(x) / sizeof((x)[0])) |
| 17 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) | 17 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) |
| 18 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) | 18 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) |
| 19 | 19 | ||
