这篇教程C++ HDstrcmp函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中HDstrcmp函数的典型用法代码示例。如果您正苦于以下问题:C++ HDstrcmp函数的具体用法?C++ HDstrcmp怎么用?C++ HDstrcmp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了HDstrcmp函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: h5trav_getindexssize_th5trav_getindex(const trav_info_t *info, const char *obj){ size_t u; /* Local index variable */ /* Loop over all paths in 'info' struct, looking for object */ for(u = 0; u < info->nused; u++) { /* Check for object name having full path (with leading '/') */ if(HDstrcmp(obj, info->paths[u].path) == 0) return((ssize_t)u); /* Check for object name without leading '/' */ if(HDstrcmp(obj, (info->paths[u].path + 1)) == 0) return((ssize_t)u); } /* end for */ return((ssize_t)-1);} /* end h5trav_getindex() */
开发者ID:ihutch,项目名称:sceptic3D,代码行数:18,
示例2: hrepack_addcompint hrepack_addcomp(const char* str, options_t *options){ obj_list_t *obj_list=NULL; /*one object list for the -t and -c option entry */ comp_info_t comp; /*compression info for the current -t option entry */ int n_objs; /*number of objects in the current -t or -c option entry */ int i; if (options->all_comp==1){ printf("Error: Invalid compression input: '*' is present with other objects <%s>/n",str); return FAIL; } /* initialize parse struct to FAIL */ HDmemset(&comp,FAIL,sizeof(comp_info_t)); /* parse the -t option */ if ((obj_list = parse_comp(str,&n_objs,&comp)) == NULL) return FAIL; /* searh for the "*" all objects character */ for (i = 0; i < n_objs; i++) { if (HDstrcmp("*",obj_list[i].obj)==0) { /* if we are compressing all set the global comp type */ options->all_comp=1; options->comp_g=comp; } } if (i>1 && options->all_comp==1) { printf("/nError: '*' cannot be with other objects, <%s>. Exiting.../n",str); goto out; } if (options->all_comp==0) { if (options_add_comp(obj_list,n_objs,comp,options->op_tbl)<0) goto out; } HDfree(obj_list); return SUCCEED; out: HDfree(obj_list); return FAIL; }
开发者ID:Higginbottom,项目名称:zeus_python,代码行数:56,
示例3: long_desc_cb/*------------------------------------------------------------------------- * Function: long_desc_cb * * Purpose: Callback function to help test long description handling * * Return: Success: 0 * * Failure: -1 * * Programmer: Quincey Koziol * January 19, 2005 * *------------------------------------------------------------------------- */static herr_tlong_desc_cb(unsigned H5_ATTR_UNUSED n, const H5E_error2_t *err_desc, void *client_data){ char *real_desc = (char *)client_data; if(err_desc->desc != NULL && HDstrcmp(err_desc->desc, real_desc) == 0) return(0); else return(-1);} /* end long_desc_cb() */
开发者ID:adasworks,项目名称:hdf5,代码行数:24,
示例4: hrepack_addchunkint hrepack_addchunk(const char* str, options_t *options){ obj_list_t *obj_list=NULL; /*one object list for the -t and -c option entry */ int n_objs; /*number of objects in the current -t or -c option entry */ int32 chunk_lengths[H4_MAX_VAR_DIMS]; /* chunk lengths along each dimension */ int chunk_rank; /*global rank for chunks */ int i, j; if (options->all_chunk==1){ printf("Error: Invalid chunking input: '*' is present with other objects <%s>/n",str); return FAIL; } /* parse the -c option */ if ((obj_list = parse_chunk(str,&n_objs,chunk_lengths,&chunk_rank)) == NULL) return FAIL; /* searh for the "*" all objects character */ for (i = 0; i < n_objs; i++) { if (HDstrcmp("*",obj_list[i].obj)==0) { /* if we are chunking all set the global chunking type */ options->all_chunk=1; options->chunk_g.rank=chunk_rank; for (j = 0; j < chunk_rank; j++) options->chunk_g.chunk_lengths[j] = chunk_lengths[j]; } } if (i>1) { printf("/nError: '*' cannot be with other objects, <%s>. Exiting.../n",str); goto out; } if (options->all_chunk==0) { if (options_add_chunk(obj_list,n_objs,chunk_lengths,chunk_rank,options->op_tbl)<0) goto out; } HDfree(obj_list); return SUCCEED; out: HDfree(obj_list); return FAIL; }
开发者ID:Higginbottom,项目名称:zeus_python,代码行数:55,
示例5: main/*------------------------------------------------------------------------- * Function: main * * Purpose: h5repack main program * * Return: Success: EXIT_SUCCESS(0) * * Failure: EXIT_FAILURE(1) * * Programmer: Pedro Vicente, [email C++ HDstrlen函数代码示例 C++ HDmalloc函数代码示例
|