Line 1... |
Line 1... |
1 |
/* This file is part of the SvarCOM project and is published under the terms
|
1 |
/* This file is part of the SvarCOM project and is published under the terms
|
2 |
* of the MIT license.
|
2 |
* of the MIT license.
|
3 |
*
|
3 |
*
|
4 |
* Copyright (C) 2021-2022 Mateusz Viste
|
4 |
* Copyright (C) 2021-2024 Mateusz Viste
|
5 |
*
|
5 |
*
|
6 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
6 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
7 |
* copy of this software and associated documentation files (the "Software"),
|
7 |
* copy of this software and associated documentation files (the "Software"),
|
8 |
* to deal in the Software without restriction, including without limitation
|
8 |
* to deal in the Software without restriction, including without limitation
|
9 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
9 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
Line 45... |
Line 45... |
45 |
unsigned short env_lookup_valcopy(char *res, unsigned short ressz, unsigned short env_seg, const char *varname);
|
45 |
unsigned short env_lookup_valcopy(char *res, unsigned short ressz, unsigned short env_seg, const char *varname);
|
46 |
|
46 |
|
47 |
/* returns the size, in bytes, of the allocated environment block */
|
47 |
/* returns the size, in bytes, of the allocated environment block */
|
48 |
unsigned short env_allocsz(unsigned short env_seg);
|
48 |
unsigned short env_allocsz(unsigned short env_seg);
|
49 |
|
49 |
|
- |
|
50 |
/* return currently used space (length, in bytes) of the environment */
|
- |
|
51 |
unsigned short env_getcurlen(unsigned short env_seg);
|
- |
|
52 |
|
50 |
/* remove a variable from environment, if present. returns 0 on success, non-zero if variable not found */
|
53 |
/* remove a variable from environment, if present. returns 0 on success, non-zero if variable not found */
|
51 |
int env_dropvar(unsigned short env_seg, const char *varname);
|
54 |
int env_dropvar(unsigned short env_seg, const char *varname);
|
52 |
|
55 |
|
53 |
#define ENV_SUCCESS 0
|
56 |
#define ENV_SUCCESS 0
|
54 |
#define ENV_NOTENOM -1
|
57 |
#define ENV_NOTENOM -1
|