aboutsummaryrefslogtreecommitdiffstats
path: root/c/ls.c
blob: 5d5ce4390ca55ddee0367e653e30f80235861915 (plain) (blame)
1
2
3
4
5
6
7
#include "gbos.h"
/* ls: list files in the filesystem. */
void main(void) {
    char name[16];
    unsigned char i;
    for (i = 0; flist(i, name); i++) { name[15] = 0; puts(name); nl(); }
}