Test program doesn't need Ctypes any more

Signed-off-by: John Else <john.else@citrix.com>
Rename module F to Foreign

Signed-off-by: John Else <john.else@citrix.com>
Fix string_of_char_array

If we reach the end of the char array without finding a null char,
finish the string and return instead of attempting to access beyond the
end of the array.

Signed-off-by: John Else <john.else@citrix.com>
Add comment

Signed-off-by: John Else <john.else@citrix.com>