网上大多数都是windows的例子
from ctypes import *
memcpy = cdll.msvcrt.memcpy
malloc = cdll.msvcrt.malloc
Ubuntu需要这样
from ctypes import *
libc = CDLL("libc.so.6")
memcpy = libc.memcpy
malloc = libc.malloc
网上大多数都是windows的例子
from ctypes import *
memcpy = cdll.msvcrt.memcpy
malloc = cdll.msvcrt.malloc
Ubuntu需要这样
from ctypes import *
libc = CDLL("libc.so.6")
memcpy = libc.memcpy
malloc = libc.malloc