File: libraryexample.c

package info (click to toggle)
sollya 7.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 13,864 kB
  • sloc: ansic: 117,441; yacc: 8,822; lex: 2,419; makefile: 870; cpp: 76
file content (21 lines) | stat: -rw-r--r-- 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <mpfi.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int foo(mpfi_t rop, mpfi_t op, int n) {
  (void) n;
  (void) op;
  mpfi_interv_ui(rop, 0, 1);
  return 0;
}

/* Externalproc designed to test non-regression of bug #21283 */
int takeyourtime() {
  if (fork() == 0) {
    sleep(5);
    printf("After\n");
    exit(0);
  }
  return 1;
}