.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_image's wiki page for IMG_isXPM: .\" https://wiki.libsdl.org/SDL_image/IMG_isXPM .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240319~18b2816+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20IMG_isXPM .\" SDL_image can be found at https://libsdl.org/projects/SDL_image .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH IMG_isXPM 3 "SDL_image 3.0.0" "SDL_image" "SDL_image3 FUNCTIONS" .SH NAME IMG_isXPM \- Detect XPM image data on a readable/seekable SDL_IOStream\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_image/SDL_image.h\(dq .PP .BI "int IMG_isXPM(SDL_IOStream *src); .fi .SH DESCRIPTION This function attempts to determine if a file is a given filetype, reading the least amount possible from the SDL_IOStream (usually a few bytes)\[char46] There is no distinction made between "not the filetype in question" and basic i/o errors\[char46] This function will always attempt to seek .BR src back to where it started when this function was called, but it will not report any errors in doing so, but assuming seeking works, this means you can immediately use this with a different .BR IMG_isTYPE function, or load the image without further seeking\[char46] You do not need to call this function to load data; SDL_image can work to determine file type in many cases in its standard load functions\[char46] .SH FUNCTION PARAMETERS .TP .I src a seekable/readable SDL_IOStream to provide image data\[char46] .SH RETURN VALUE Returns non-zero if this is XPM data, zero otherwise\[char46] .SH AVAILABILITY This function is available since SDL_image 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR IMG_isAVIF (3), .BR IMG_isICO (3), .BR IMG_isCUR (3), .BR IMG_isBMP (3), .BR IMG_isGIF (3), .BR IMG_isJPG (3), .BR IMG_isJXL (3), .BR IMG_isLBM (3), .BR IMG_isPCX (3), .BR IMG_isPNG (3), .BR IMG_isPNM (3), .BR IMG_isSVG (3), .BR IMG_isQOI (3), .BR IMG_isTIF (3), .BR IMG_isXCF (3), .BR IMG_isXV (3), .BR IMG_isWEBP (3)