PHYSFS_writeSLE16

Function PHYSFS_writeSLE16 

Source
pub unsafe extern "C" fn PHYSFS_writeSLE16(
    file: *mut PHYSFS_File,
    val: PHYSFS_sint16,
) -> c_int
Expand description

\fn int PHYSFS_writeSLE16(PHYSFS_File *file, PHYSFS_sint16 val) \brief Convert and write a signed 16-bit littleendian value.

Convenience function. Convert a signed 16-bit value from the platform’s native byte order to littleendian and write it to a file.

\param file PhysicsFS file handle to which to write. \param val Value to convert and write. \return zero on failure, non-zero on success. On failure, you can find out what went wrong from PHYSFS_getLastErrorCode().