这篇教程C++ xstrcat函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中xstrcat函数的典型用法代码示例。如果您正苦于以下问题:C++ xstrcat函数的具体用法?C++ xstrcat怎么用?C++ xstrcat使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了xstrcat函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: ftnmsgidint ftnmsgid(char *msgid, char **s, unsigned int *n, char *areaname){ char *buf, *l, *r, *p; unsigned int nid = 0L; faddr *tmp; static int ftnorigin = 0; Syslog('m', "Make ftn msgid from /"%s/"", MBSE_SS(msgid)); if (msgid == NULL) { *s = NULL; *n = 0L; return ftnorigin; } buf = malloc(strlen(msgid)+65); strcpy(buf, msgid); if ((l = strchr(buf,'<'))) l++; else l = buf; while (isspace(*l)) l++; if ((r = strchr(l,'>'))) *r = '/0'; r = l + strlen(l) - 1; while (isspace(*r) && (r > l)) (*r--)='/0'; if ((tmp = parsefaddr(l))) { if (tmp->name) { if (strspn(tmp->name,"0123456789") == strlen(tmp->name)) nid = atoul(tmp->name); else nid = 0xffffffff; if (nid == 0xffffffff) { hash_update_s(&nid, tmp->name); } else ftnorigin = 1; } else { hash_update_s(&nid,l); } *s = xstrcpy(ascfnode(tmp, 0x1f)); tidy_faddr(tmp); } else { if ((r=strchr(l,'@')) == NULL) { /* should never happen */ Syslog('!', "ftnmsgid: should never happen: %s", printable(l, 0)); *s = xstrcpy(l); hash_update_s(&nid,l); /* <[email C++ xstrcmp函数代码示例 C++ xstrcasecmp函数代码示例
|