ELinks 0.18.0
env.c File Reference

Environment variables handling. More...

#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "util/env.h"
#include "util/memory.h"
Include dependency graph for env.c:

Functions

int env_set (const char *name, const char *value, int length)
 Set name environment variable to value or a substring of it: On success, it returns 0.

Detailed Description

Environment variables handling.

Function Documentation

◆ env_set()

int env_set ( const char * name,
const char * value,
int length )

Set name environment variable to value or a substring of it: On success, it returns 0.

If value is NULL and on error, it returns -1. If length >= 0 and smaller than true value length, it will set name to specified substring of value.