File: libc_helper.c

package info (click to toggle)
grok 1.20110708.1-4.3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,460 kB
  • sloc: ansic: 3,469; ruby: 987; makefile: 276; sh: 124; yacc: 106
file content (11 lines) | stat: -rw-r--r-- 201 bytes parent folder | download | duplicates (5)
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);
  }
}