|
Re: cast function, other ideas: msg#00014python.ctypes
Thomas Heller wrote:
memcpy and strcpy are already usable: >>> import ctypes >>> msvcrt = ctypes.cdll.msvcrt >>> memcpy = msvcrt.memcpy >>> >>> a = 'abcde' >>> b = '234' >>> >>> memcpy( a, b, 2 ) 19376276 >>> a '23cde' >>> I gave us more than you think :) THANKS! Niki Spahiev ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: cast function, other ideas: 00014, Mark McMahon |
|---|---|
| Next by Date: | Re: cast function, other ideas: 00014, Paul Moore |
| Previous by Thread: | Re: cast function, other ideasi: 00014, Dave Brueck |
| Next by Thread: | Re: cast function, other ideas: 00014, Paul Moore |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |