Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gd_nvectors(3) [debian man page]

gd_nvectors(3)							      GETDATA							    gd_nvectors(3)

NAME
gd_nvectors -- report the number of vector fields in a dirfile SYNOPSIS
#include <getdata.h> unsigned int gd_nvectors(DIRFILE *dirfile); DESCRIPTION
The gd_nvectors() function queries a dirfile(5) database specified by dirfile and returns the number of vector fields defined in the data- base (i.e. fields of types BIT, LINCOM, LINTERP, MULTIPLY, PHASE, POLYNOM, RAW, SBIT). Notably, this count does not include /META fields. The dirfile argument must point to a valid DIRFILE object previously created by a call to gd_open(3). RETURN VALUE
Upon successful completion, gd_nvectors() returns the number of vector fields in the dirfile. On error, it returns zero and sets the dirfile error to a non-zero error value. Possible error values are: GD_E_BAD_DIRFILE The supplied dirfile was invalid. The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from a call to gd_error_string(3). SEE ALSO
dirfile(5), gd_open(3), gd_error(3), gd_error_string(3), gd_nfields(3), gd_nmvectors(3), gd_vector_list(3) Version 0.7.0 16 July 2010 gd_nvectors(3)

Check Out this Related Man Page

gd_nmvectors(3) 						      GETDATA							   gd_nmvectors(3)

NAME
gd_nmvectors -- report the number of vector fields in a dirfile SYNOPSIS
#include <getdata.h> unsigned int gd_nmvectors(DIRFILE *dirfile); DESCRIPTION
The gd_nmvectors() function queries a dirfile(5) database specified by dirfile and returns the number of vector metafields defined in the database (i.e. fields of types BIT, LINCOM, LINTERP, MULTIPLY, PHASE, and RAW)for the supplied parent field. The dirfile argument must point to a valid DIRFILE object previously created by a call to gd_open(3). RETURN VALUE
Upon successful completion, gd_nmvectors() returns the number of vector metafields in the dirfile for the given parent. On error, it re- turns zero and sets the dirfile error to a non-zero error value. Possible error values are: GD_E_BAD_CODE The supplied parent field code was not found, or referred to a metafield itself. GD_E_BAD_DIRFILE The supplied dirfile was invalid. The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from a call to gd_error_string(3). SEE ALSO
dirfile(5), gd_open(3), gd_error(3), gd_error_string(3), gd_mvector_list(3), gd_nmfields(3), gd_nvectors(3) Version 0.7.0 16 July 2010 gd_nmvectors(3)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Listing out three fields of data

How would I find three different fields in a data file such as first name, last name, credit card number in a particular file? Thanks in advance for your help (3 Replies)
Discussion started by: damion
3 Replies

2. UNIX for Dummies Questions & Answers

how to copy update without interactive

Dear, How to copy update without interactive confirmation? I am using #cp -Rfu dirfile dirfile But the interactive confirmation still exist. Thank you. (0 Replies)
Discussion started by: blesets
0 Replies

3. Shell Programming and Scripting

Get count on different fields along the raws in a file

Dear All, Please help me to do this. I have a file like this. 5|94662240807|94776109911|94776325901|94779007172|||||| 5|94112925421|94352240384|94352259199|94672229012|||||| 5|94714242745|94722952461|94777660793|94788914465|||||| 5|94242224624|94776145420|94776172499|94776531059|||||| ... (7 Replies)
Discussion started by: Nayanajith
7 Replies

4. UNIX for Dummies Questions & Answers

count number of fields not using SED or AWK

hi forums i need help with a little problem i am having. i need to count the number of fields that are in a saved variable so i can use that number to make a different function work properly. is there a way of doing this without using SED/AWK? anything would be greatly appreciated (4 Replies)
Discussion started by: strasner
4 Replies

5. UNIX for Dummies Questions & Answers

distinct values of all the fields

I am a beginner to scripting, please help me in this regard. How do I create a script that provides a count of distinct values of all the fields in the pipe delimited file ? I have 20 different files with multiple columns in each file. I needed to write a generic script where I give the number... (1 Reply)
Discussion started by: vukkusila
1 Replies

6. UNIX for Beginners Questions & Answers

How to add number of fields throughout file together?

So, I have three problems that cover this subject. First one asks me to find the number of fields in the file that contain the substring "he". I found the number of fields, but the problem I have is that they are displaying by each record. I want to add all of the records' fields together. With... (2 Replies)
Discussion started by: mc10
2 Replies