arch/ppc-sam440: oops - found my missing KrnCli/KrnSti implementations
[AROS.git] / rom / dos / bstr_helper.c
bloba699cf669b5c6b855890683fbd4a2215a41399a7
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
4 Desc: BSTR helpers
5 Lang: English
6 */
8 #include <aros/debug.h>
9 #include <proto/exec.h>
10 #include <dos/dosextens.h>
12 static void BSTR2CINLINE(char *s)
14 UBYTE len = s[0];
15 memmove(s, s + 1, len);
16 s[len] = 0;
19 void fixfib(struct FileInfoBlock *fib)
21 BSTR2CINLINE(fib->fib_FileName);
22 BSTR2CINLINE(fib->fib_Comment);