修复了大量存在的问题,增加了假鸭子类型等等机制
This commit is contained in:
@@ -24,7 +24,7 @@ def snprintf(buf: t.CChar | t.CPtr, size: t.CSizeT, fmt: str, *args) -> t.CInt |
|
||||
if buf == None or fmt == None or size == 0: return 0
|
||||
ptr: t.CChar | t.CPtr = buf
|
||||
write_count: t.CInt = 0
|
||||
temp: list[t.CChar, 24]
|
||||
temp: t.CArray[t.CChar, 24]
|
||||
temp[0] = '\t'
|
||||
while c.Deref(fmt) != 0 and write_count < size - 1:
|
||||
if c.Deref(fmt) != 37:
|
||||
|
||||
Reference in New Issue
Block a user