DscGetErrorString

Universal Driver Documentation
Returns the corresponding error string for the given error code.

Table of contents

Function Definition

char* dscGetErrorString(BYTE error_code)

Function Parameters

NameDescription
error_codeThe error code to translate.

Return Value

The char* error string corresponding to the given error code

Usage Example

    ERRPARAMS errparams;

    if ((result = dscInit(DSC_VERSION)) != DE_NONE)
    {
        dscGetLastError(&errparams);
        fprintf(stderr, "dscInit failed: %s (%s)\n", 
                dscGetErrorString(result), errparams.errstring);
        return result;
    }


This page was last modified 11:18, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.