![]() ![]() GSL_EFAILED if there was a problem writing to the file. This function writes the elements of the block b to the stream int gsl_block_fwrite ( FILE * stream, const gsl_block * b ) ¶ The library provides functions for reading and writing blocks to a fileĪs binary data or formatted text. This function frees the memory used by a block b previouslyĪllocated with gsl_block_alloc() or gsl_block_calloc(). This function allocates memory for a block and initializes all theĮlements of the block to zero. gsl_block * gsl_block_calloc ( size_t n ) ¶ Is returned if insufficient memory is available to create the block. Zero-sized requests are valid and return a non-null result. ![]() Use theįunction gsl_block_calloc() if you want to ensure that all the Initialized and so the values of its elements are undefined. This function allocates memory for a block of n double-precisionĮlements, returning a pointer to the block struct. gsl_block * gsl_block_alloc ( size_t n ) ¶ Then it isn’t necessary to check every alloc. Thus if you use the library error handler to abort your program Number of GSL_ENOMEM) in addition to returning a null If there is insufficient memory available to allocate aīlock then the functions call the GSL error handler (with an error In addition they also perform their ownĮrror checking. The functions for allocating memory to a block follow the style of ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |