mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-24 14:52:21 -08:00
mask off bad conversion task launches
This commit is contained in:
1 parent
5a93f5d4cb
commit
e88a59a57e
2 files changed
+37
-15
No files matched your search
+24
-9
@@ -85,25 +85,40 @@ correct_slash_from_char(U8 c)
|
||||
internal U64
|
||||
cstring8_length(U8 *c)
|
||||
{
|
||||
U8 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
return (p - c);
|
||||
U64 length = 0;
|
||||
if(c)
|
||||
{
|
||||
U8 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
length = (U64)(p - c);
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
internal U64
|
||||
cstring16_length(U16 *c)
|
||||
{
|
||||
U16 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
return (p - c);
|
||||
U64 length = 0;
|
||||
if(c)
|
||||
{
|
||||
U16 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
length = (U64)(p - c);
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
internal U64
|
||||
cstring32_length(U32 *c)
|
||||
{
|
||||
U32 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
return (p - c);
|
||||
U64 length = 0;
|
||||
if(c)
|
||||
{
|
||||
U32 *p = c;
|
||||
for (;*p != 0; p += 1);
|
||||
length = (U64)(p - c);
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user