Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
xt_valid_extension(3)	   Library Functions Manual	 xt_valid_extension(3)

NAME
       xt_valid_extension() - Determine	whether	filename extention is usable

LIBRARY
       #include	<xtend/file.h>
       -lxtend

SYNOPSIS
       bool    xt_valid_extension(const	char *filename,	const char *valid_ext)

ARGUMENTS
       filename:   Name	of the file to be checked
       valid_ext:  Valid extension, not	include	.gz, .bz2, or .xz

DESCRIPTION
       Verify  that the	filename extension on filename is either the valid ex-
       tension provided	or that	extension followed by a	compression extension,
       e.g. .gz, .bz2, .xz.

RETURN VALUES
       true (defined in	stdbool.h) if filename has a valid extension false  if
       not

SEE ALSO
       gzip(1),	bzip2(1), xz(1)

							 xt_valid_extension(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_valid_extension&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help