Skip to content

npp_read_param_str

Jurek Muszyński edited this page Dec 19, 2021 · 2 revisions

bool npp_read_param_str(const char *param, char *dest)

Description

Reads string parameter from npp.conf and copies it to dest as a NULL-terminated string.

Returns

Returns true if parameter has been found in the config file, otherwise false.

Example

static char M_someSetting[256]=SOME_SETTING_DEFAULT_VALUE;

// in npp_app_init()
npp_read_param_str("someSetting", M_someSetting);
Clone this wiki locally