is_valid_email

March 26, 2020

Name

is_valid_email — Determines whether emailaddr is a valid email address

Synopsis

#include "util.h"

| int **is_valid_email** ( | emailaddr, |   |
|   | mailbox_desc, |   |
|   | mailbox_desclen, |   |
|   | localpart, |   |
|   | lplen, |   |
|   | domain, |   |
|   | domainlen); |   |

const char * <var class="pdparam">emailaddr</var>;
char * <var class="pdparam">mailbox_desc</var>;
int <var class="pdparam">mailbox_desclen</var>;
char * <var class="pdparam">localpart</var>;
int <var class="pdparam">lplen</var>;
char * <var class="pdparam">domain</var>;
int <var class="pdparam">domainlen</var>;

Description

Determines whether emailaddr is a valid email address. If it is, then it will populate localpart and domain with the appropriate, parsed string values.

Parameters

emailaddr

The string that will be validated.

mailbox_desc

This value should always be passed NULL.

mailbox_desclen

The length