Solstice X.25 9.2 Developer's Guide

8.14 linkidtox25--Convert Link Identifier to Numeric Form

Synopsis
#include <netx25/x25_proto.h>
 #include <netx25/xnetdb.h>

    uint32_t linkidtox25(linkid)
unsigned char *linkid;
Description

Converts a character string link identifier to the numeric format used in X.25 primitives, with a range of 0 - 254.

Arguments

The parameters are:

Table 8-14 linkidtox25 parameters

Parameter 

Description 

str_linkid

A pointer to the string containing the character format link id. 

Return Values

On success 0 is returned. On failure the value of MAX_LINKID is returned. By default, this is 255.