Compare commits
2 Commits
c85906be64
...
dba6b159f5
| Author | SHA1 | Date | |
|---|---|---|---|
| dba6b159f5 | |||
| 882fa6e3d4 |
1
lib/advanced_C_standard_liberary/.gitignore
vendored
1
lib/advanced_C_standard_liberary/.gitignore
vendored
@ -66,3 +66,4 @@ CTestTestfile.cmake
|
|||||||
_deps
|
_deps
|
||||||
# ---> Extra
|
# ---> Extra
|
||||||
vgcore.*
|
vgcore.*
|
||||||
|
src/main.c
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
project(advanced_C_standard_library C)
|
project(advanced_C_standard_library C)
|
||||||
set_property(GLOBAL PROPERTY C_STANDARD)
|
set_property(GLOBAL PROPERTY C_STANDARD)
|
||||||
cmake_minimum_required(VERSION 3.9)
|
cmake_minimum_required(VERSION 3.9)
|
||||||
include_directories("include")
|
include_directories(include)
|
||||||
file(GLOB SOURCES "src/*.c")
|
file(GLOB SOURCES "src/*.c")
|
||||||
add_executable(test.out ${SOURCES})
|
add_executable(test.out ${SOURCES})
|
||||||
find_program(CCACHE_PROGRAM ccache)
|
find_program(CCACHE_PROGRAM ccache)
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include "array.h"
|
|
||||||
#include <stddef.h>
|
|
||||||
#include "file.h"
|
|
||||||
#include <stdbool.h>
|
|
||||||
int main() {
|
|
||||||
bool sucess;
|
|
||||||
char *content = acl_ReadFileString("LICENSE", &sucess);
|
|
||||||
if(sucess) {
|
|
||||||
printf("%s", content);
|
|
||||||
}
|
|
||||||
else printf("Erorror\n");
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user