mirror of
https://github.com/vladmandic/automatic
synced 2026-09-04 20:10:45 +02:00
14 lines
217 B
Python
14 lines
217 B
Python
from ctypes import CDLL, c_void_p, c_size_t
|
|
|
|
|
|
msvcrt = CDLL("msvcrt")
|
|
|
|
|
|
malloc = msvcrt.malloc
|
|
malloc.restype = c_void_p
|
|
malloc.argtypes = [c_size_t]
|
|
|
|
free = msvcrt.free
|
|
free.restype = None
|
|
free.argtypes = [c_void_p]
|