OpenVAS Libraries  6.0+beta5
Functions
strutils.c File Reference
#include <ctype.h>
#include <string.h>
#include "system.h"
#include "strutils.h"

Functions

char * nasl_strndup (char *str, int length)
 
int str_match (const char *string, const char *pattern, int icase)
 
void * nasl_memmem (const void *haystack, size_t hl_len, const void *needle, size_t n_len)
 Slow replacement for memmem. More...
 

Function Documentation

void* nasl_memmem ( const void *  haystack,
size_t  hl_len,
const void *  needle,
size_t  n_len 
)

Slow replacement for memmem.

char* nasl_strndup ( char *  str,
int  length 
)
Todo:
These functions are not necessarily nasl-specific and thus subject to be moved (e.g. to misc).
int str_match ( const char *  string,
const char *  pattern,
int  icase 
)
Todo:
In parts replacable by g_pattern_match function (when not icase)