+ All Categories
Home > Documents > Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf ·...

Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf ·...

Date post: 26-Mar-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
43
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function Pointer and C Standard Library 魏恒峰 [email protected] 2017 11 24 Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 11 24 1 / 22
Transcript
Page 1: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Function Pointer and C Standard Library

魏恒峰

[email protected]

2017 年 11 月 24 日

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 1 / 22

Page 2: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Function Pointer

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 2 / 22

Page 3: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Sort

Compare & Swap

sort_ints

sort_floats

sort_strings

sort_persons

· · ·

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 3 / 22

Page 4: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

SortCompare & Swap

sort_ints

sort_floats

sort_strings

sort_persons

· · ·

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 3 / 22

Page 5: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Sort for any typesCompare & Swap

sort_ints

sort_floats

sort_strings

sort_persons

· · ·

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 3 / 22

Page 6: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Sort for any typesCompare & Swap

sort_ints

sort_floats

sort_strings

sort_persons

· · ·

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 3 / 22

Page 7: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Sort for any typesCompare & Swap

sort_ints

sort_floats

sort_strings

sort_persons

· · ·

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 3 / 22

Page 8: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdlib.h>)

void qsort (void *base, size_t num, size_t size,int (*compar)(const void*, const void*));

(compare.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 4 / 22

Page 9: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdlib.h>)

void qsort (void *base, size_t num, size_t size,int (*compar)(const void*, const void*));

(compare.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 4 / 22

Page 10: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

int (*fptr)(int); // fptr is a function pointer

int square(int num) {return num * num;

}

int n = 5;fptr = square; // fptr points to a functionfptr(n); // call ''square''

(fptr-square.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 5 / 22

Page 11: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

int (*fptr)(int); // fptr is a function pointer

int square(int num) {return num * num;

}

int n = 5;fptr = square; // fptr points to a functionfptr(n); // call ''square''

(fptr-square.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 5 / 22

Page 12: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

int (*fptr)(int); // fptr is a function pointer

int square(int num) {return num * num;

}

int n = 5;fptr = square; // fptr points to a functionfptr(n); // call ''square''

(fptr-square.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 5 / 22

Page 13: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

typedef int (*predicate)(int n); // type!

void filter(int *vals, int n, predicate cond);

(filter-fp.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 6 / 22

Page 14: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

typedef int (*predicate)(int n); // type!

void filter(int *vals, int n, predicate cond);

(filter-fp.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 6 / 22

Page 15: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

typedef int (*predicate)(int n); // type!

void filter(int *vals, int n, predicate cond);

(filter-fp.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 6 / 22

Page 16: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

C Standard Library

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 7 / 22

Page 17: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 8 / 22

Page 18: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 9 / 22

Page 19: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <assert.h>)

scanf(''%d'', &n);assert(n > 0)

int *vals = malloc(sizeof(int) * n);assert(vals != NULL)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 10 / 22

Page 20: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <assert.h>)

scanf(''%d'', &n);assert(n > 0)

int *vals = malloc(sizeof(int) * n);assert(vals != NULL)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 10 / 22

Page 21: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <ctype.h>)

isdigitisalphaisalnum

islowerisupper

isspace

tolowertoupper

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 11 / 22

Page 22: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <limits.h>)

CHAR_MINCHAR_MAX

INT_MININT_MAX

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 12 / 22

Page 23: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <math.h>)

sincos

explog

powsqrt

ceilfloor

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 13 / 22

Page 24: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdarg.h>)

int printf(const char *format, ...);

printf(''%d %c %s'', num, ch, str);

(1) unnamed(2) # unknown

(3) “· · · ” must be at the end(4) ≥ 1 named argument

va_list // type

va_startva_argva_end

(miniprintf.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 14 / 22

Page 25: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdarg.h>)

int printf(const char *format, ...);

printf(''%d %c %s'', num, ch, str);

(1) unnamed(2) # unknown

(3) “· · · ” must be at the end(4) ≥ 1 named argument

va_list // type

va_startva_argva_end

(miniprintf.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 14 / 22

Page 26: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdarg.h>)

int printf(const char *format, ...);

printf(''%d %c %s'', num, ch, str);

(1) unnamed(2) # unknown

(3) “· · · ” must be at the end(4) ≥ 1 named argument

va_list // type

va_startva_argva_end

(miniprintf.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 14 / 22

Page 27: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdarg.h>)

int printf(const char *format, ...);

printf(''%d %c %s'', num, ch, str);

(1) unnamed(2) # unknown

(3) “· · · ” must be at the end(4) ≥ 1 named argument

va_list // type

va_startva_argva_end

(miniprintf.c)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 14 / 22

Page 28: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(Command-line arguments)

int main(int argc, char *argv[]) {}

argv[0]: program name

(add-cmdarg.c)

(man ls)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 15 / 22

Page 29: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(Command-line arguments)

int main(int argc, char *argv[]) {}

argv[0]: program name

(add-cmdarg.c)

(man ls)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 15 / 22

Page 30: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(Command-line arguments)

int main(int argc, char *argv[]) {}

argv[0]: program name

(add-cmdarg.c)

(man ls)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 15 / 22

Page 31: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stddef.h>)typedef /*implementation -defined*/ size_t;

sizeof(int)

void* malloc (size_t size);

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 16 / 22

Page 32: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stddef.h>)typedef /*implementation -defined*/ size_t;

sizeof(int)

void* malloc (size_t size);

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 16 / 22

Page 33: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdio.h>)

scanfprintf

getcharputchar

fopenfclose

EOF

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 17 / 22

Page 34: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <stdlib.h>)

atoiatof

srandrand

mallocfree

bsearchqsort

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 18 / 22

Page 35: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <string.h>)

char book[] = ''The C Book'';char *pbook = ''The C Book'';

‘\0’

strncopystrncatstrncmp

strlen

strchrstrrchrstrstr

strtok

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 19 / 22

Page 36: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <string.h>)

char book[] = ''The C Book'';char *pbook = ''The C Book'';

‘\0’

strncopystrncatstrncmp

strlen

strchrstrrchrstrstr

strtok

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 19 / 22

Page 37: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <string.h>)

char book[] = ''The C Book'';char *pbook = ''The C Book'';

‘\0’

strncopystrncatstrncmp

strlen

strchrstrrchrstrstr

strtok

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 19 / 22

Page 38: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <string.h>)

char book[] = ''The C Book'';char *pbook = ''The C Book'';

‘\0’

strncopystrncatstrncmp

strlen

strchrstrrchrstrstr

strtok

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 19 / 22

Page 39: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

(#include <time.h>)

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 20 / 22

Page 40: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Highly Recommended!

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 21 / 22

Page 41: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Highly Recommended!

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 21 / 22

Page 42: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 22 / 22

Page 43: Function Pointer and C Standard Librarycslabcms.nju.edu.cn/.../images/3/39/1-5-c-library.pdf · 2017. 11. 24. · Function Pointer and C Standard Library 魏恒峰 hfwei@nju.edu.cn

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hengfeng Wei ([email protected]) Function Pointer and C Standard Library 2017 年 11 月 24 日 22 / 22


Recommended