PMPARSEINTERVAL - Online Linux Manual PageSection : 3
Updated : PCP
Source : Performance Co-Pilot

NAMEpmParseInterval − convert interval string to timeval structure

C SYNOPSIS#include <pcp/pmapi.h> int pmParseInterval(const char *string, struct timeval *rslt, char **errmsg); cc ... −lpcp

DESCRIPTIONpmParseInterval parses the argument string specifying an interval of time and fills in the tv_sec and tv_usec components of the rslt structure to represent that interval. The input string is most commonly the argument following a −t command line option to a PCP application, and the syntax is fully described in PCPIntro(1).

DIAGNOSTICSpmParseInterval returns 0 and errmsg is undefined if the parsing is successful. If the given string does not conform to the required syntax pmParseInterval returns −1 and a dynamically allocated error message string in errmsg. The error message is terminated with a newline and includes the text of the input string along with an indicator of the position at which the error was detected, e.g.
​4minutes 30mumble
​ ^ -- unexpected value
In the case of an error, the caller is responsible for calling free(3) to release the space allocated for errmsg.

SEE ALSOPCPIntro(1), free(3), PMAPI(3) and pmParseTimeWindow(3).
0
Johanes Gumabo
Data Size   :   5,314 byte
man-pmParseInterval.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 203,431
Visitor ID   :     :  
Visitor IP   :   52.15.233.83   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.