⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syntax-dateandtime-get.m2i

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 M2I
字号:
#############################################################  -*- c -*-## generic include for XXX. Do not use directly.#### $Id: syntax-DateAndTime-get.m2i,v 1.5 2004/10/08 23:39:17 rstory Exp $########################################################################@if $m2c_mark_boundary == 1@/** START code generated by $RCSfile: syntax-DateAndTime-get.m2i,v $ $Revision: 1.5 $ */@end@##########################################################################   /* temporary storage for date. If you have any of this data available      directly, use it instead. */   int year, month, day, hour, minutes, seconds, deci_seconds;   int rc, utc_offset_direction, utc_offset_hours, utc_offset_minutes;   /** we should have a pointer and enough storage */   netsnmp_assert( (NULL != ${node}_ptr_ptr) && (NULL != *${node}_ptr_ptr));   netsnmp_assert( (NULL != ${node}_len_ptr) && ((* ${node}_len_ptr) >= 11));   /*    * TODO:231:o: |-> copy $node data.    * get the date from your context pointer.    */   return MFD_SKIP; /* TODO:234:M: |-> Remove SKIP once you've set $node data */   year = 0; /* 0..65536 */   month = 0; /* 1..12 */   day = 0; /* 1..31 */   hour = 0; /* 0..23 */   minutes = 0; /* 0..59 */   seconds = 0; /* 0..60 (60 indicates a leap-second) */   deci_seconds = 0; /* 0..9 */   /* setting utc offset is optional. Leave the values as is if you      want to exclude this information. */   utc_offset_direction = 0; /* -1, +1 */   utc_offset_hours = -1; /* 0..13 */   utc_offset_minutes = -1; /* 0..59 */   /* call convenience function to set data */   rc = netsnmp_dateandtime_set_buf_from_vars(*${node}_ptr_ptr, ${node}_len_ptr,                           year, month, day,                           hour, minutes, seconds, deci_seconds,                           utc_offset_direction, utc_offset_hours,                           utc_offset_minutes );   if(rc != SNMP_ERR_NOERROR)      return rc;##########################################################################@if $m2c_mark_boundary == 1@/** END code generated by $RCSfile: syntax-DateAndTime-get.m2i,v $ $Revision: 1.5 $ */@end@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -