Tags » Wrapper

Wraping C code with Python CTypes: memory and pointers

In the last two posts, I have introduced using CTypes in Python in order to call library functions written in C and C++. In this post I present in more details how to pass arguments to and receive results from those functions. 549 more words


A safe wrapper implemented in C for freeing dynamic allocated memory.

In this article I will present to you a safe wrapper for freeing memory allocated with *alloc family functions. The standard function “void free (void * pointer)” from stdlib library does not check the given pointer to see whether it is NULL and does not NULL terminate the pointer before it returns either. 665 more words

Free Software

Carpe Diem Haiku *Amanogawa - The Milky Way (Sept. 2013)*

* * *
unable to blend
in the pile of autumn leaves
“Milky Way” wrapper

* * *

Carpe Diem Haiku Kai


How to Create a Synchronous Wrapper Around an Asynchronous Method

Asynchronous methods are the key to keeping your iOS app responsive. Each method running on the main thread has 1/60 of a second to return before it will affect your screen refresh rate. 217 more words


Orlando High School Student Wore Trojan Condom Outfit

An Orlando high school student wore a Trojan condom outfit to class on “character day” was told to take it off because it was inappropriate… he was just trying to promote safe-sex to his classmates. 46 more words