コード例 #1
0
def check_string(result, func, cargs):
    if result:
        s = string_at(result)
        free(result)
    else:
        s = ''
    return s.decode()
コード例 #2
0
ファイル: prototypes.py プロジェクト: gmcquillan/django
def check_string(result, func, cargs):
    if result:
        s = string_at(result)
        free(result)
    else:
        s = ''
    return s.decode()
コード例 #3
0
ファイル: prototypes.py プロジェクト: Goutham2591/OMK_PART2
def check_string(result, func, cargs):
    if result:
        s = string_at(result)
        free(result)
    else:
        s = ''
    return s.decode(GEOIP_DEFAULT_ENCODING)
コード例 #4
0
def check_string(result, func, cargs):
    if result:
        s = string_at(result)
        free(result)
    else:
        s = ''
    return s.decode(GEOIP_DEFAULT_ENCODING)
コード例 #5
0
from ctypes import POINTER, Structure, c_char_p, c_float, c_int, string_at