Ticket #62070: bar.c

File bar.c, 408 bytes (added by Guymer (Thomas Guymer), 4 years ago)

example C "hello world" program

Line 
1#include <stdio.h>
2
3// /opt/local/bin/gcc-mp-10 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include bar.c -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
4// /opt/local/bin/mpicc-openmpi-gcc10 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include bar.c -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
5
6int main(void) {
7    printf("hello, world (C)\n");
8}