home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
lang
/
skel_azt.sha
/
report.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-07-08
|
627b
|
31 lines
/*
* report.c -- put up a dialog window with a message set up in a
* string resource and an "OK" button
*/
#include <types.h>
#include <dialog.h>
#include "def.h"
void
report(str)
char *str; /* note that this is a Pascal string, not a C string,
* but, because only Pascal routines handle it, no
* conversion is necessary
*/
{
int button;
DialogPtr dp;
ParamText(str, "", "", "");
/*
* note that this dialog resource has a text box with the
* special character string "^0" in it
*/
dp = GetNewDialog(257, NIL, -1L);
ModalDialog(NIL, &button);
DisposDialog(dp);
} /* end of report */