本文整理汇总了C++中show_file函数的典型用法代码示例。如果您正苦于以下问题:C++ show_file函数的具体用法?C++ show_file怎么用?C++ show_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
void
run()
{
/* wyswietlanie przed sortowaniem */
printf("*** Plik przed sortowaniem: *** \n\n");
show_file(path_file);
printf("\n\n");
/* działanie na rekordach */
algorithm(&path_file, show_steps);
printf("\n");
/* wyswietlanie po sortowaniu */
/* printf("*** Plik po sortowaniu: *** \n\n"); */
printf("*** Plik out po sortowaniu: *** \n\n");
show_file(path_file);
printf("\n\n");
tmpa_file = "tmpa.txt";
printf("*** Plik tmpa po sortowaniu: *** \n\n");
show_file(tmpa_file);
printf("\n\n");
tmpb_file = "tmpb.txt";
printf("*** Plik tmpb po sortowaniu: *** \n\n");
show_file(tmpb_file);
printf("\n\n");
printf("Liczba faz sortowan: %d\n", phases);
printf("Liczba odczytow: %d\n", reads_file_oper);
printf("Liczba zapisow: %d\n", writes_file_oper);
exit(0);
}
示例2: show_dynamic
static void show_dynamic(const char *directory)
{
MY_DIR *dir= NULL;
unsigned int i;
char *plugin_dir= directory ? (char *)directory : getenv("MARIADB_PLUGIN_DIR");
if (!plugin_dir)
plugin_dir= PLUGINDIR;
printf("plugin_dir %s\n", plugin_dir);
dir= my_dir(plugin_dir, 0);
if (!dir || !dir->number_off_files)
{
printf("No plugins found in %s\n", plugin_dir);
goto end;
}
for (i=0; i < dir->number_off_files; i++)
{
char *p= strstr(dir->dir_entry[i].name, SO_EXT);
if (p)
show_file(dir->dir_entry[i].name);
}
end:
if (dir)
my_dirend(dir);
}
示例3: show_80x24_screen
int
show_80x24_screen(const char *filename)
{
clear();
// max 24 lines, holding one more line for pause/messages
return show_file(filename, 0, 24, SHOWFILE_ALLOW_ALL);
}
示例4: show_helpfile
// TODO
// move this function to vtuikit.c
void
show_helpfile(const char *helpfile)
{
clear();
show_file((char *)helpfile, 0, b_lines, SHOWFILE_ALLOW_ALL);
PRESSANYKEY();
}
示例5: show_functions
static void show_functions(const char *funcre)
{
if (funcre)
show_file_re("available_filter_functions", funcre);
else
show_file("available_filter_functions");
}
示例6: show_play_pic
int
show_play_pic(int i)
{ /*休闲的图 */
char buf[256];
clrchyiuan(6, 18);
#ifdef MAPLE
sprintf(buf, "src/maple/pipgame/play/pic%d", i);
#else
sprintf(buf, "game/pipgame/play/pic%d", i);
#endif // END MAPLE
if (i == 0)
show_file(buf, 2, 16, ONLY_COLOR);
else
show_file(buf, 6, 12, ONLY_COLOR);
return 0;
}
示例7: show_file
/* show_helpfile() - Displays a help file to the screen.
Parameters: hlpname - Base name of the help file to show.
Returns: Nothing.
Notes: This function is really just a wrapper for show_file() that
adds in the help prefix and suffix as well.
*/
void show_helpfile(unsigned char *hlpname)
{
top_output(OUT_SCREEN, getlang("HelpPrefix"));
show_file(hlpname, SCRN_RESETCOL);
top_output(OUT_SCREEN, getlang("HelpSuffix"));
}
示例8: do_cmd_wiz_help
/*
* Display the debug commands help file.
*/
static void do_cmd_wiz_help(void)
{
char buf[80];
strnfmt(buf, sizeof(buf), "debug.txt");
screen_save();
show_file(buf, NULL, 0, 0);
screen_load();
}
示例9: show_textbox
static void show_textbox(const char *title, const char *text, int r, int c)
{
int fd;
fd = creat(".help.tmp", 0777);
write(fd, text, strlen(text));
close(fd);
show_file(".help.tmp", title, r, c);
unlink(".help.tmp");
}
示例10: do_cmd_help
/*
* Peruse the On-Line-Help
*/
void do_cmd_help(void)
{
/* Save screen */
screen_save();
/* Peruse the main help file */
(void)show_file("help.hlp", NULL, 0, 0);
/* Load screen */
screen_load();
}
示例11: main
int main(int argc,char *argv[])
{
////////////////////////////////////////////////////////////////////////
// Native Language Support Int
////////////////////////////////////////////////////////////////////////
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
////////////////////////////////////////////////////////////////////////
char* fchar = (char*) argv[1];
set_path_self(argv[0]);
////////////////////////////////////////////////////////////////////////
/* GTK INIT */
////////////////////////////////////////////////////////////////////////
gtk_init(&argc,&argv);
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/* PATH SELF SET */
////////////////////////////////////////////////////////////////////////
//set_path_self(g_strdup(argv[0]));
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/* CONFIG Setup */
////////////////////////////////////////////////////////////////////////
config_setup();
ui_unity_init();
tpad_fp_init();
gtk_widget_show_all(GTK_WIDGET(tpad_new_ui()));
new_file();
////////////////////////////////////////////////////////////////////////
// handle cl arguments
////////////////////////////////////////////////////////////////////////
if (argc > 2){
int i=0;
for (i = 2; i < argc; i += 1) new_thread_tpad ( g_strdup(argv[i]));
}
if(argc > 1) {
show_file(g_strdup(fchar));
}
////////////////////////////////////////////////////////////////////////
/* GTK MAIN */
////////////////////////////////////////////////////////////////////////
gtk_main();
////////////////////////////////////////////////////////////////////////
return (0);
}
示例12: main
int main(int argc, char **argv) {
if (argc > 2) {
fprintf(stderr, "Bad args!");
return 1;
}
if (argc == 2) {
return show_file(argv[1]);
} else {
return show_without_file();
}
}
示例13: show_job_pic
int
show_job_pic(int i)
{ /* 打工的show图 */
char buf[256];
clrchyiuan(6, 18);
#ifdef MAPLE
sprintf(buf, "src/maple/pipgame/job/pic%d", i);
#else
sprintf(buf, "game/pipgame/job/pic%d", i);
#endif // END MAPLE
show_file(buf, 6, 12, ONLY_COLOR);
return 0;
}
示例14: show_basic_pic
int
show_basic_pic(int i)
{
char buf[256];
clrchyiuan(6, 17);
#ifdef MAPLE
sprintf(buf, "src/maple/pipgame/basic/pic%d", i);
#else
sprintf(buf, "game/pipgame/basic/pic%d", i);
#endif // END MAPLE
show_file(buf, 6, 12, ONLY_COLOR);
return 0;
}
示例15: show_weapon_pic
int
show_weapon_pic(int i)
{ /* 武器用 */
char buf[256];
clrchyiuan(1, 10);
#ifdef MAPLE
sprintf(buf, "src/maple/pipgame/weapon/pic%d", i);
#else
sprintf(buf, "game/pipgame/weapon/pic%d", i);
#endif // END MAPLE
show_file(buf, 1, 10, ONLY_COLOR);
return 0;
}