ICU-1474 ufortune sample, add new-line to fortune messages.

X-SVN-Rev: 6779
This commit is contained in:
Andy Heninger 2001-11-12 18:05:51 +00:00
parent 7b728adf3b
commit f3abcec6d1

View File

@ -40,7 +40,7 @@
* here, and will pass the data address to ICU, which will then
* be able to fetch resources from the data.
*/
extern const void U_IMPORT *fortune_resources_dat;
extern const void U_IMPORT *fortune_resources_dat;
void u_write(const UChar *what, int len);
@ -189,7 +189,8 @@ int main(int argc, char **argv)
exit(-1);
}
u_file_write(resString, len, u_stdout);
u_file_write(resString, len, u_stdout); /* Write out the message */
u_fputc(0x0a, u_stdout); /* and a trailing newline */
return 0;
}