align=center><FONT color=#0000ff size=3><B><FONT color=#cc0000>函数大全(m开头)</FONT></B></FONT></P>1 I* U- M6 R: w* Q' `
align=left><FONT color=#ff0000>main()主函数
NULL)
><FONT color=#ff0000>函数名: matherr </FONT>9 g3 U. U+ ?! a* v
><FONT color=#0000ff>/* This is a user-defined matherr function that prevents
><FONT color=#0000ff>#include<MATH.H> </FONT></P>9 B i5 K4 ~& t0 o- U
><FONT color=#0000ff>int matherr(struct exception *a)
><FONT color=#ff0000>函数名: memccpy </FONT>
><FONT color=#0000ff>#include <STRING.H>! }. w, c8 k8 f5 @( `' K, `- [
><FONT color=#0000ff>int main(void)
><FONT color=#0000ff>ptr = memccpy(dest, src, 'c', strlen(src)); </FONT></P>
><FONT color=#0000ff>if (ptr) ' B& `9 |1 ]- T# M% c0 @' g
><FONT color=#ff0000>函数名: malloc</FONT>
><FONT color=#0000ff>#include <STDIO.H>
ROCESS.H></FONT></P>+ t9 a! t7 C8 z8 e1 B
><FONT color=#0000ff>int main(void)
><FONT color=#0000ff>/* allocate memory for string */ & T& P" N8 V! ^2 o6 u6 ]
><FONT color=#0000ff>/* copy "Hello" into string */ 1 P* a" _0 g G5 `, |5 w( J( v
><FONT color=#0000ff>/* display string */ 2 {+ c; h2 i, H ^9 R
><FONT color=#0000ff>/* free memory */
><FONT color=#0000ff>return 0;
><FONT color=#ff0000>函数名: memchr</FONT> % E6 w2 T$ j/ I; Y6 \
><FONT color=#0000ff>#include <STRING.H>/ G8 ]! I% T* ~8 {2 _* Y3 t i
><FONT color=#0000ff>int main(void) 2 t- R5 w9 L6 O) y3 s
><FONT color=#0000ff>strcpy(str, "This is a string");
><FONT color=#ff0000>函数名: memcpy </FONT>
><FONT color=#0000ff>#include <STDIO.H>
><FONT color=#ff0000>函数名: memicmp </FONT>
><FONT color=#0000ff>#include <STDIO.H>
><FONT color=#0000ff>int main(void)
><FONT color=#ff0000>函数名: memmove </FONT>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |