16 lines
267 B
C
16 lines
267 B
C
#include "bstr.h"
|
|
#include <libowfat/uint32.h>
|
|
|
|
size_t bstrstart(const char* a) {
|
|
if (*a) return 0; else return 5;
|
|
}
|
|
|
|
#ifdef UNITTEST
|
|
#include <assert.h>
|
|
|
|
int main() {
|
|
assert(bstrstart("foo") == 0);
|
|
assert(bstrstart("\x00\x03\x00\x00\x00""foo") == 5);
|
|
}
|
|
#endif
|