bzero和sigevent

原型:extern void bzero(void *s, int n); 
  用法:#include 
  功能:置字节字符串s的前n个字节为零。  
  说明:bzero无返回值。  
  举例:  
  // bzero.c  
  #include  
  #include  
  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;  

  } 

NAME         top

       struct sigevent - structure for notification from asynchronous routines

SYNOPSIS         top

       union sigval {          /* Data passed with notification */
           int     sival_int;         /* Integer value */
           void   *sival_ptr;         /* Pointer value */
       };

       struct sigevent {
           int          sigev_notify; /* Notification method */
           int          sigev_signo;  /* Notification signal */
           union sigval sigev_value;  /* Data passed with
                                         notification */
           void       (*sigev_notify_function) (union sigval);
                            /* Function used for thread
                               notification (SIGEV_THREAD) */
           void        *sigev_notify_attributes;
                            /* Attributes for notification thread
                               (SIGEV_THREAD) */
           pid_t        sigev_notify_thread_id;
                            /* ID of thread to signal (SIGEV_THREAD_ID) */
       };

242 #define SIGEV_SIGNAL    0       /* notify via signal */
243 #define SIGEV_NONE      1       /* other notification: meaningless */
244 #define SIGEV_THREAD    2       /* deliver via thread creation */
245 #define SIGEV_THREAD_ID 4       /* deliver to thread */
246 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值