icstringbuffer.h

来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 52 行

H
52
字号
/* Copyright 2003-2006, Voltage Security, all rights reserved.
 */

#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "stringutil.h"

#ifndef _ICSTRINGBUFFER_H_
#define _ICSTRINGBUFFER_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct  
{
  char           *str;
  unsigned int    capacity;
  unsigned int    length;
} icStringBuffer;

/* Creates a string buffer.
 */
int icStringBufferCreate (
   icStringBuffer **buffer,
   VoltLibCtx *libCtx
   );

/* Frees all memory associated with the string buffer.
 */
void icStringBufferFree (
   icStringBuffer **buffer,
   VoltLibCtx *libCtx
   );

/* Appends the character to the string buffer, expanding it if necessary.
 */
int icStringBufferAppend (
   icStringBuffer *buffer,
   int theChar,
   VoltLibCtx *libCtx
   );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?