?? llist_test.c
字號:
/******************************************************** * An example source module to accompany... * * "Using POSIX Threads: Programming with Pthreads" * by Brad nichols, Dick Buttlar, Jackie Farrell * O'Reilly & Associates, Inc. * ******************************************************** * llist_test.c -- * * Exercizer program for linked list */#include "llist.h"#include <stdio.h>#include <stdlib.h>#define MAXDATALEN 40extern intmain(void) { llist_t ll; char *string; int index; llist_init(&ll); while (TRUE) { printf ("Input index number (or 0 to quit): "); scanf ("%d", &index); if (index == 0) break; string = malloc(MAXDATALEN); if (string == NULL) perror("malloc"); printf ("Input data char: "); scanf ("%s", string); llist_insert_data(index, string, &ll); } llist_show(&ll); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -