mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
11 lines
251 B
C
11 lines
251 B
C
//clang -dynamiclib lib2.c -o $PWD/lib2.dylib
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
void callLib2Function() {
|
|
printf("Now we are in lib2.dylib.\n");
|
|
printf("Press enter to back to executable code...\n");
|
|
getchar();
|
|
}
|