| 10 | #include "GB.h" |
| 11 | |
| 12 | GrB_Info GxB_Iterator_new (GxB_Iterator *iterator) |
| 13 | { |
| 14 | GB_WHERE1 ("GxB_Iterator_new (&iterator)") ; |
| 15 | GB_RETURN_IF_NULL (iterator) ; |
| 16 | size_t header_size ; |
| 17 | (*iterator) = GB_CALLOC (1, struct GB_Iterator_opaque, &header_size) ; |
| 18 | if (*iterator == NULL) |
| 19 | { |
| 20 | // out of memory |
| 21 | return (GrB_OUT_OF_MEMORY) ; |
| 22 | } |
| 23 | (*iterator)->header_size = header_size ; |
| 24 | return (GrB_SUCCESS) ; |
| 25 | } |
| 26 |
no outgoing calls
no test coverage detected