is_valid_filename(const char *input_filename)
{
	if (!input_filename) {
		lprintf(LOG_ERR, "ERROR: NULL pointer passed.");
		return -1;
	}

	if (strlen(input_filename) < 1) {
		lprintf(LOG_ERR, "File/path is invalid.");
		return -2;
	}

	if (strlen(input_filename) >= 512) {
		lprintf(LOG_ERR, "File/path must be shorter than 512 bytes.");
		return -3;
	}

	return 0;
} /* is_valid_filename() */
is_valid_filename(const char *input_filename)
{
	if (!input_filename) {
		lprintf(LOG_ERR, "ERROR: NULL pointer passed.");
		return -1;
	}

	if (strlen(input_filename) < 1) {
		lprintf(LOG_ERR, "File/path is invalid.");
		return -2;
	}

	if (strlen(input_filename) >= 512) {
		lprintf(LOG_ERR, "File/path must be shorter than 512 bytes.");
		return -3;
	}

	return 0;
}  