cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

print.h (1618B)


      1/**
      2 * WinPR: Windows Portable Runtime
      3 * Print Utils
      4 *
      5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef WINPR_UTILS_PRINT_H
     21#define WINPR_UTILS_PRINT_H
     22
     23#include <stdio.h>
     24#include <stdlib.h>
     25#include <stdarg.h>
     26
     27#include <winpr/winpr.h>
     28#include <winpr/wtypes.h>
     29#include <winpr/wlog.h>
     30
     31#define WINPR_HEXDUMP_LINE_LENGTH 16
     32
     33#ifdef __cplusplus
     34extern "C"
     35{
     36#endif
     37
     38	WINPR_API void winpr_HexDump(const char* tag, UINT32 lvl, const BYTE* data, size_t length);
     39	WINPR_API void winpr_HexLogDump(wLog* log, UINT32 lvl, const BYTE* data, size_t length);
     40	WINPR_API void winpr_CArrayDump(const char* tag, UINT32 lvl, const BYTE* data, int length,
     41	                                int width);
     42
     43	WINPR_API char* winpr_BinToHexString(const BYTE* data, int length, BOOL space);
     44
     45	WINPR_API int wprintfx(const char* fmt, ...);
     46	WINPR_API int wvprintfx(const char* fmt, va_list args);
     47	WINPR_API int wvsnprintfx(char* buffer, size_t bufferSize, const char* fmt, va_list args);
     48
     49#ifdef __cplusplus
     50}
     51#endif
     52
     53#endif /* WINPR_UTILS_PRINT_H */