HEX
Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2k-fips
System: Linux f17.eelserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User: zulfiqar (1155)
PHP: 8.2.0
Disabled: mail, exec, system, popen, proc_open, shell_exec, passthru, show_source
Upload Files
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;
}
/* }}} */