MCPcopy Create free account
hub / github.com/BleuLlama/TinyBasicPlus / cmd_Files

Function cmd_Files

cli/main.cpp:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21/* other helpers */
22
23int cmd_Files( void )
24{
25 DIR * theDir;
26
27 theDir = opendir( "." );
28 if( !theDir ) return -2;
29
30 struct dirent *theDirEnt = readdir( theDir );
31 while( theDirEnt ) {
32 printf( " %s\n", theDirEnt->d_name );
33 theDirEnt = readdir( theDir );
34 }
35 closedir( theDir );
36
37 return 0;
38}
39
40void setup( void );
41void loop( void );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected