Compare commits

...

4 commits

Author SHA1 Message Date
9b877b222a Merge branch 'man' of http://10.0.0.64:3006/thek0tyara/thread_test 2025-06-15 01:01:13 +03:00
8a0923f28a new build system 2025-06-15 00:57:10 +03:00
c0ca81418b test2 2025-06-15 00:03:09 +03:00
6848796fb3 test1 2025-06-15 00:02:51 +03:00
5 changed files with 47 additions and 0 deletions

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild",
"C_Cpp.default.compileCommands": "/home/thek0tyara/Documents/projects/c/builddir/compile_commands.json"
}

BIN
bin/main Executable file

Binary file not shown.

6
build.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
c_files=$(find src -name '*.c')
mkdir -p bin
clang ${c_files} -o bin/main

21
src/main.c Normal file
View file

@ -0,0 +1,21 @@
#include "main.h"
//
char *scanned_path;
//
void check_args(int argc, char *argv[]) {
char* _scanned_path;
if(argc > 1) {
_scanned_path=argv[1];
}else{
_scanned_path=".";
}
scanned_path=realpath(_scanned_path, NULL);
}
int main(int argc, char *argv[]) {
check_args(argc, argv);
printf("scanned path: %s\n",scanned_path);
//
path_node *parent_node=alloc;
//
return 0;
}

16
src/main.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef __main_h__
#define __main_h__
//
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
//
struct path_node {
char *path;
uint size;
struct path_node *next;
};
//
#endif