1 //------------------------------------------------------------------------------
2 // GrB_getVersion: get the version number of the GraphBLAS C API standard
3 //------------------------------------------------------------------------------
4
5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
6 // SPDX-License-Identifier: Apache-2.0
7
8 //------------------------------------------------------------------------------
9
10 // For compile-time access, use GRB_VERSION and GRB_SUBVERSION.
11
12 #include "GB.h"
13
GrB_getVersion(unsigned int * version,unsigned int * subversion)14 GrB_Info GrB_getVersion // runtime access to C API version number
15 (
16 unsigned int *version, // returns GRB_VERSION
17 unsigned int *subversion // returns GRB_SUBVERSION
18 )
19 {
20
21 //--------------------------------------------------------------------------
22 // get the version number
23 //--------------------------------------------------------------------------
24
25 if (version != NULL) (*version ) = GRB_VERSION ;
26 if (subversion != NULL) (*subversion) = GRB_SUBVERSION ;
27
28 return (GrB_SUCCESS) ;
29 }
30
31