/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Test program for portab.h and friends ;-)
*/
-#include "imp.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "exp.h"
+int allow_severity = 0, deny_severity = 0;
static void
Panic(char *Reason)
static void
Check_strtok_r(void)
{
- char *ptr, *last;
+ char *str, *ptr, *last;
ptr = strdup("12,abc");
+ str = ptr;
ptr = strtok_r(ptr, ",", &last);
if (!ptr)
ptr = strtok_r(NULL, ",", &last);
if (ptr)
Panic("strtok_r result #3");
+
+ free(str);
}
#ifdef PROTOTYPES
Check_strlcat();
Check_strtok_r();
Check_vsnprintf(2+10, "%s%s", "ab", "1234567890");
-
+
return 0;
}