handle src buffer underflow corner cases
[sdl_omap.git] / docs / man3 / SDL_SaveBMP.3
CommitLineData
e14743d1 1.TH "SDL_SaveBMP" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
2.SH "NAME"
3SDL_SaveBMP \- Save an SDL_Surface as a Windows BMP file\&.
4.SH "SYNOPSIS"
5.PP
6\fB#include "SDL\&.h"
7.sp
8\fBint \fBSDL_SaveBMP\fP\fR(\fBSDL_Surface *surface, const char *file\fR);
9.SH "DESCRIPTION"
10.PP
11Saves the \fBSDL_Surface\fR \fBsurface\fR as a Windows BMP file named \fBfile\fR\&.
12.SH "RETURN VALUE"
13.PP
14Returns \fB0\fR if successful or \fB-1\fR if there was an error\&.
15.SH "SEE ALSO"
16.PP
17\fI\fBSDL_LoadBMP\fP\fR
18.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01