stub C gonna fork for easier w https://stackoverflow.com/questions/28242722/fork-and-wait-calls, https://stackoverflow.com/questions/30476853/how-to-make-a-fifo-in-c
This commit is contained in:
29
src/c.c
Normal file
29
src/c.c
Normal file
@@ -0,0 +1,29 @@
|
||||
#import <stdio.h>
|
||||
|
||||
int scatter(int, int);
|
||||
int gather(int, int);
|
||||
|
||||
int main() {
|
||||
int N = 100;
|
||||
int P = 3;
|
||||
|
||||
if (scatter(N, P)) {
|
||||
printf("failed to scatter\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (gather(N, P)) {
|
||||
printf("failed to gather\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int scatter(int N, int P) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int gather(int N, int P) {
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user