Greenbone Security Assistant
Functions
utils.c File Reference

Utility functions in GSAD. More...

#include "utils.h"
#include <string.h>

Functions

gboolean str_equal (const gchar *str1, const gchar *str2)
 Check if two strings are equal. More...
 
gchar * capitalize (const char *input)
 Capitalize a type or command name and replace underscores. More...
 

Detailed Description

Utility functions in GSAD.

Function Documentation

◆ capitalize()

gchar* capitalize ( const char *  input)

Capitalize a type or command name and replace underscores.

Parameters
[in]inputThe input string.
Returns
The newly allocated capitalized type or command name.

◆ str_equal()

gboolean str_equal ( const gchar *  str1,
const gchar *  str2 
)

Check if two strings are equal.

Returns
TRUE if string are equal