system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /usr/local/src/xcache-3.2.0/util/
Upload File :
Current File : //usr/local/src/xcache-3.2.0/util/xc_trace.c

#ifdef TEST
#	define PHP_DIR_SEPARATOR '/'
#else
#	include "php.h"
#endif
#include "xc_trace.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>

const char *xc_trace_get_basename(const char *path) /* {{{ */
{
	const char *last_separator = strrchr(path, PHP_DIR_SEPARATOR);
	return last_separator ? last_separator + 1 : path;
}
/* }}} */
int xc_vtrace(const char *fmt, va_list args) /* {{{ */
{
	return vfprintf(stderr, fmt, args);
}
/* }}} */
int xc_trace(const char *fmt, ...) /* {{{ */
{
	va_list args;
	int ret;

	va_start(args, fmt);
	ret = xc_vtrace(fmt, args);
	va_end(args);
	return ret;
}
/* }}} */