Create a gist now

Instantly share code, notes, and snippets.

Python strings should stay immutable.
#!/usr/bin/env python
from ctypes import CDLL
foo = "Fiesta"
bar = "Fiesta"
#Change foo with low level C
libc = CDLL('libc.so.6')
libc.strcpy(foo, "Nachos")
print "We'll meet at the", bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment