mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-15 20:25:04 +01:00
fopen and tests
This commit is contained in:
parent
862ef8dc22
commit
b795ee80c9
14 changed files with 97 additions and 45 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *self = argv[0];
|
||||
char first = self[0];
|
||||
if (first != '/') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
assert((first < 128) && "argv[0] is not ascii/utf-8");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue