...

XmTextFieldGetSubstring - Online Linux Manual Page

Section : library call

NAMEXmTextFieldGetSubstring — A TextField function that retrieves a copy of a portion of the internal text buffer .iX "XmTextFieldGetSubstring" .iX "TextField functions" "XmTextFieldGetSubstring"

SYNOPSIS#include <Xm/TextF​.h> int XmTextFieldGetSubstring( Widget widget, XmTextPosition start, int num_chars, int buffer_size, char *buffer);

DESCRIPTIONXmTextFieldGetSubstring retrieves a copy of a portion of the internal text buffer of a TextField widget​. The function copies a specified number of characters from a given start position in the internal text buffer into a buffer provided by the application​. A NULL terminator is placed at the end of the copied data​. The size of the required buffer depends on the maximum number of bytes per character (MB_CUR_MAX) for the current locale​. MB_CUR_MAX is a macro defined in stdlib​.h​. The buffer should be large enough to contain the substring to be copied and a NULL terminator​. Use the following equation to calculate the size of buffer the application should provide: buffer_size = (num_chars* MB_CUR_MAX) + 1 (void)widget Specifies the TextField widget ID​. start Specifies the beginning character position from which the data will be retrieved​. This is an integer number of characters from the beginning of the text buffer​. The first character position is 0 (zero)​. num_chars Specifies the number of characters to be copied into the provided buffer​. buffer_size Specifies the size of the supplied buffer in bytes​. This size should account for a NULL terminator​. buffer Specifies the character buffer into which the internal text buffer will be copied​. For a complete definition of TextField and its associated resources, see XmTextField(3)​.

RETURNXmCOPY_SUCCEEDED The function was successful​. XmCOPY_FAILED The function failed because it was unable to copy the specified number of characters into the buffer provided​. The buffer size may be insufficient​. The contents of buffer are undefined​. XmCOPY_TRUNCATED The requested number of characters extended beyond the internal buffer​. The function copied characters between start and the end of the widget​'s buffer and terminated the string with a NULL terminator; fewer than num_chars characters were copied​.

RELATEDXmTextField(3) and XmTextFieldGetSubstringWcs(3)​. ...
0
Johanes Gumabo
Data Size   :   9,614 byte
man-XmTextFieldGetSubstring.3Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   34 / 2,206,756
Visitor ID   :     :  
Visitor IP   :   216.73.216.62   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
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 - 25.03.22
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 johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|254|XmTextFieldGetSubstring.3|2|..|... )         (parse_manual_page_|254|XmTextFieldGetSubstring.3|53|iX|.iX "XmTextFieldGetSubstring" )         (parse_manual_page_|254|XmTextFieldGetSubstring.3|54|iX|.iX "TextField functions" "XmTextFieldGetSubstring" )         (parse_manual_page_|254|XmTextFieldGetSubstring.3|121|..|... )