File: libc_helper.c

package info (click to toggle)
grok 1.20110708.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,488 kB
  • sloc: ansic: 3,469; ruby: 987; makefile: 278; sh: 124; yacc: 106; python: 11
file content (11 lines) | stat: -rw-r--r-- 201 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "libc_helper.h"

void safe_pipe(int pipefd[2]) {
  if (pipe(pipefd) == -1) {
    perror("[fatal] pipe() failed");
    exit(1);
  }
}