![]() |
Flowgrind
Advanced TCP traffic generator
|
Functions to manipulate strings used by Flowgrind. More...
#include "config.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "fg_string.h"
#include "fg_definitions.h"
Go to the source code of this file.
Functions | |
int | asprintf_append (char **strp, const char *fmt,...) |
size_t | fmtlen (const char *fmt, va_list ap) |
Determine the number of characters that would be generated by a printf with format string fmt and arguments ap . More... | |
char * | strdup_append (char *s, const char *a) |
Append the duplication of string a to the given string s . More... | |
static char * | strlendup_append (char *s, size_t slen, const char *a, size_t alen) |
Append the duplication of string a of length alen to the given string s at point slen . More... | |
char * | strndup_append (char *s, const char *a, size_t n) |
Append at most n characters of the duplication of string a to the given string s . More... | |
int | vasprintf_append (char **strp, const char *fmt, va_list ap) |
Functions to manipulate strings used by Flowgrind.
Definition in file fg_string.c.
int asprintf_append | ( | char ** | strp, |
const char * | fmt, | ||
... | |||
) |
Definition at line 98 of file fg_string.c.
size_t fmtlen | ( | char const * | fmt, |
va_list | ap | ||
) |
Determine the number of characters that would be generated by a printf with format string fmt
and arguments ap
.
[in] | fmt | format string |
[in] | ap | parameters used to fill fmt |
Definition at line 61 of file fg_string.c.
char* strdup_append | ( | char * | s, |
const char * | a | ||
) |
Append the duplication of string a
to the given string s
.
[in] | s | destination string to append to |
[in] | a | source string to be append |
Definition at line 76 of file fg_string.c.
|
inlinestatic |
Append the duplication of string a
of length alen
to the given string s
at point slen
.
[in] | s | destination string to append to |
[in] | slen | length of string s |
[in] | a | source string to be append |
[in] | alen | length of string a |
Definition at line 47 of file fg_string.c.
char* strndup_append | ( | char * | s, |
const char * | a, | ||
size_t | n | ||
) |
Append at most n characters of the duplication of string a
to the given string s
.
[in] | s | destination string to append to |
[in] | a | source string to be append |
[in] | n | number of characters to be append from the string |
Definition at line 87 of file fg_string.c.
int vasprintf_append | ( | char ** | strp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 109 of file fg_string.c.