mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-16 04:35:05 +01:00
fix argv handling
This commit is contained in:
parent
21d3f12572
commit
613482b8c4
7 changed files with 28 additions and 5 deletions
9
tests/c/argv.c
Normal file
9
tests/c/argv.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include<stdio.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
char *self = argv[0];
|
||||
char first = self[0];
|
||||
if (first != '/') {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue