Changeset 1174 in svn for trunk/util/xc_trace.c


Ignore:
Timestamp:
2012-11-13T13:30:21+01:00 (3 years ago)
Author:
Xuefer
Message:

show basename for easier trace log reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/xc_trace.c

    r990 r1174  
     1#include "php.h"
    12#include "xc_trace.h"
    23#include <stdio.h>
    34#include <stdarg.h>
     5#include <string.h>
    46
     7const char *xc_trace_get_basename(const char *path) /* {{{ */
     8{
     9    const char *last_separator = strrchr(path, PHP_DIR_SEPARATOR);
     10    return last_separator ? last_separator + 1 : path;
     11}
     12/* }}} */
    513int xc_vtrace(const char *fmt, va_list args) /* {{{ */
    614{
Note: See TracChangeset for help on using the changeset viewer.