找啊找啊找工作---C语言(1)

来源:互联网 发布:coreldraw mac 编辑:程序博客网 时间:2024/06/05 18:12
        技术笔试或者面试中,一些C库函数常常被拿出来考察。一般只知道用法,没有考虑过如何实现。所以,有必要亲自动手写一遍。网上调查了一下,以下函数比较具有代表性:

1、字符串拷贝函数:

重要度:★★★★★

原    型:char *strcpy( char *strDestination, const char *strSource );

2、字符串长度函数:

重要度:★★★★★

原    型:size_t  strlen(  const char  *);

3、字符串转换成整型函数:

重要度:★★★★

原    型:int  atoi(  const char  *);

4、整型转换成字符串函数:

重要度:★★★

原    型:char   * itoa( int value,  char  *string,  int radix );

5、内存拷贝函数:

重要度:★★★★

原    型:void  *memcpy (  void  * restrictdest,  const void  * restrictsrc,  size_t  );

5、内存移动函数:

重要度:★★★★

原    型:void  *memmove(  void  *dest,  const void  *src,  size_t int );

6、内存填充函数:

重要度:★★★★

原    型:void  *memset(  void  *dest,  intc ,  size_t  n );