FAT is the de-facto standard for embedded systems and mobile devices.
Line: 221 to 221
Print current directory:
Changed:
< <
create path 256 allot
> >
256 buffer: path
path 256 f_getcwd drop strlen type
Line: 469 to 469
vi
Added:
> >
C-String Helpers
Middleware like FatFs and RTOS expect C strings (0 terminated strings).
str0term ( cadr len -- cadr len ) null-terminated string
strlen ( c-addr -- c-addr len ) calculate the length of a C string
.str" ( c-addr "text" -- len ) copy string into buffer
.( ( "text) -- )