galago-utils.h File Reference
Utility functions. More...
#include <stdlib.h>
Go to the source code of this file.
Memory allocation functions | |
#define | galago_new(struct_type, n_structs) ((struct_type *)malloc(sizeof(struct_type) * (n_structs))) |
#define | galago_new0(struct_type, n_structs) ((struct_type *)galago_malloc0(sizeof(struct_type) * (n_structs))) |
void * | galago_malloc0 (size_t bytes) |
Allocates a block of memory and sets the bytes to 0. | |
void * | galago_memdup (const void *ptr, size_t size) |
Duplicates a block of memory of the specified size. | |
String functions | |
char * | galago_str_lower (const char *str) |
Converts a string to lowercase. | |
char * | galago_str_upper (const char *str) |
Converts a string to uppercase. |
Detailed Description
Utility functions.
- Copyright:
- (C) 2004-2005 Christian Hammond
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file galago-utils.h.
Function Documentation
|
Allocates a block of memory and sets the bytes to 0.
|
|
Duplicates a block of memory of the specified size.
|
|
Converts a string to lowercase.
|
|
Converts a string to uppercase.
|