MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmt_get_api_ptr

Function gmt_get_api_ptr

src/gmt_api.c:797–803  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

795
796/*! . */
797struct GMTAPI_CTRL * gmt_get_api_ptr (struct GMTAPI_CTRL *ptr) {
798 /* Clean casting of void to API pointer at start of a module
799 * If ptr is NULL we are in deep trouble...
800 */
801 if (ptr == NULL) return_null (NULL, GMT_NOT_A_SESSION);
802 return (ptr);
803}
804
805/*! gmtapi_alloc_object_array is a convenience function that, given type, allocates an array of pointers to the corresponding container */
806GMT_LOCAL void * gmtapi_alloc_object_array (struct GMTAPI_CTRL *API, unsigned int n_items, unsigned int type) {

Callers 15

GMT_grd2cptFunction · 0.85
GMT_gmtconvertFunction · 0.85
GMT_grdvolumeFunction · 0.85
GMT_docsFunction · 0.85
GMT_nearneighborFunction · 0.85
GMT_pswiggleFunction · 0.85
GMT_wiggleFunction · 0.85
GMT_pssolarFunction · 0.85
GMT_solarFunction · 0.85
GMT_grdconvertFunction · 0.85
GMT_grdreformatFunction · 0.85
GMT_grdviewFunction · 0.85

Calls

no outgoing calls

Tested by 1

GMT_spectrum1dFunction · 0.68