c语言 bzero_c语言中函数的类型

原型:extern void bzero(void *s, int n);

  用法:#include <string.h>

  功能:置字节字符串s的前n个字节为零。

  说明:bzero无返回值。

  举例:

  // bzero.c

  #include <syslib.h>

  #include <string.h>

  main()

  {

  struct

  {

  int a;

  char s[5];

  float f;

  } tt;

  char s[20];

  bzero(&tt,sizeof(tt)); // struct initialization to zero

  bzero(s,20);

  clrscr();

  printf(“Initail Success”);

  getchar();

  return 0;

  }原型:extern void bzero(void *s, int n);

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/182301.html原文链接:https://javaforall.cn

未经允许不得转载:木盒主机 » c语言 bzero_c语言中函数的类型

赞 (0)

相关推荐

    暂无内容!