Main Page Alphabetical List Compound List File List Compound Members File Members
GATUtil.c File ReferenceSource file for the different utility functions used throughout the GAT engine.
More...
#include <stdlib.h>
#include <string.h>
#include "GATUtil.h"
#include "GATErrors.h"
Include dependency graph for GATUtil.c:
Go to the source code of this file.
Detailed Description
Source file for the different utility functions used throughout the GAT engine.
- Date:
-
Mon Oct 20 2003
- Version:
-
- Header:
-
/export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/src/GATUtil.c,v 1.6 2004/04/05 11:49:44 hartmutkaiser Exp
Copyright (C) Hartmut Kaiser This file is part of the GAT Engine. Contributed by Hartmut Kaiser <hartmutkaiser [at] t-online [dot] de>.
Use, modification and distribution is subject to the Gridlab Software License. (See accompanying file GLlicense.txt or copy at http://www.gridlab.org/GLlicense.txt)
Definition in file GATUtil.c.
Function Documentation
| char* GATUtil_strdup |
( |
char const * |
str |
) |
|
|
|
|
char *GATUtil_strdup(char const *str) Make a copy of a given string
The function GATUtil_strdup allocates a new copy of the given string. The return value should be free'd by the caller by means of the function free(). Since strdup isn't POSIX, we need to provide our own. - Parameters:
-
| str |
The string to be copied. |
- Returns:
-
Returns the allocated string copy.
Definition at line 39 of file GATUtil.c.
References str.
Referenced by AdaptorInstance_Create(), add_field(), AddToAdaptorConfig(), advertservice_adapter_resolve_path(), advertservice_db_find_node(), advertservice_db_get_node_data(), GATAdvertService_ExtractName(), GATAdvertService_ResolvePath(), GATConfig_AddAdaptorConfig(), GATConfig_Create(), GATLocation_DeSerialise_Create(), GATMetric_Clone(), GATMetric_Create(), GATRequest_Clone(), GATRequest_Create(), GATReservation_Create(), GATTable_Internal_CloneKey_String(), and logical_filestore_create(). |
| void* GATUtil_memdup |
( |
void const * |
buffer, |
|
|
GATuint32 |
size |
|
) |
|
|
| GATResult GATUtil_appendstring |
( |
char ** |
str, |
|
|
char const * |
to_append |
|
) |
|
|
Variable Documentation
const char* rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/src/GATUtil.c,v 1.6 2004/04/05 11:49:44 hartmutkaiser Exp $" [static]
|
|
|