mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
A few new minor utility functions.
A function to compare two strings _both_ in ptrlen form (I've had ptrlen_eq_string for ages, but for some reason, never quite needed ptrlen_eq_ptrlen). A function to ask whether one ptrlen starts with another (and, optionally, return a ptrlen giving the remaining part of the longer string). And the va_list version of logeventf, which I really ought to have written in the first place by sheer habit, even if it was only needed by logeventf itself.
This commit is contained in:
2
putty.h
2
putty.h
@ -1484,6 +1484,8 @@ void logtraffic(LogContext *logctx, unsigned char c, int logmode);
|
||||
void logflush(LogContext *logctx);
|
||||
void logevent(LogContext *logctx, const char *event);
|
||||
void logeventf(LogContext *logctx, const char *fmt, ...);
|
||||
void logeventvf(LogContext *logctx, const char *fmt, va_list ap);
|
||||
|
||||
/*
|
||||
* Pass a dynamically allocated string to logevent and immediately
|
||||
* free it. Intended for use by wrapper macros which pass the return
|
||||
|
Reference in New Issue
Block a user