(init, size=None)
create_string_buffer(aBytes) -> character array
    create_string_buffer(anInteger) -> character array
    create_string_buffer(aBytes, anInteger) -> character array
create_string_buffer(aBytes) -> character array
    create_string_buffer(anInteger) -> character array
    create_string_buffer(aBytes, anInteger) -> character array
create_string_buffer ( aBytes ) - > character array create_string_buffer ( anInteger ) - > character array create_string_buffer ( aBytes anInteger ) - > character array
def create_string_buffer(init, size=None):
    """create_string_buffer(aBytes) -> character array
    create_string_buffer(anInteger) -> character array
    create_string_buffer(aBytes, anInteger) -> character array
    """
    if isinstance(init, bytes):
        if size is None:
            size = len(init)+1
        _sys.audit("ctypes.create_string_buffer", init, size)
        buftype = c_char * size
        buf = buftype()
        buf.value = init
        return buf
    elif isinstance(init, int):
        _sys.audit("ctypes.create_string_buffer", None, init)
        buftype = c_char * init
        buf = buftype()
        return buf
    raise TypeError(init)
def create_string_buffer ( init , size = None ) : if isinstance ( init , bytes ) : if size is None : size = len ( init ) + 1 _sys . audit ( "ctypes.create_string_buffer" , init , size ) buftype = c_char * size buf = buftype ( ) buf . value = init return buf elif isinstance ( init , int ) : _sys . audit ( "ctypes.create_string_buffer" , None , init ) buftype = c_char * init buf = buftype ( ) return buf raise TypeError ( init )