Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pthread.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
- #define MIN(a, b) ((a > b) ? b : a)
- #define CHECK_RETURN(func_call, msg) do { \
- int r = (func_call); \
- if (r != 0) { \
- fprintf(stderr, "Error %s: %s\n", (msg), strerror(r)); \
- exit(1); \
- } \
- } while (0)
- #define CHECK_ERRNO(func_call, msg) do { \
- int r = (func_call); \
- if (r != 0) { \
- perror(msg); \
- exit(1); \
- } \
- } while (0)
- int main(int argc, char *argv[]) {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement