cgpt/cgpt_common.c
/* Resolves human-readable GPT type.
 * Returns CGPT_OK if found.
 * Returns CGPT_FAILED if no known type found. */
Resolves human-readable GPT type.
Returns CGPT_OK if found.
Returns CGPT_FAILED if no known type found.
Resolves human - readable GPT type . Returns CGPT_OK if found . Returns CGPT_FAILED if no known type found .
int ResolveType(const Guid *type, char *buf) {
  int i;
  for (i = 0; i < ARRAY_COUNT(supported_types); ++i) {
    if (!memcmp(type, supported_types[i].type, sizeof(Guid))) {
      strcpy(buf, supported_types[i].description);
      return CGPT_OK;
    }
  }
  return CGPT_FAILED;
}
int ResolveType ( const Guid * type , char * buf ) { int i ; for ( i = 0 ; i < ARRAY_COUNT ( supported_types ) ; ++ i ) { if ( ! memcmp ( type , supported_types [ i ] . type , sizeof ( Guid ) ) ) { strcpy ( buf , supported_types [ i ] . description ) ; return CGPT_OK ; } } return CGPT_FAILED ; }
Resolves human-readable GPT type.
Resolves human - readable GPT type .