1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
/*
Psychtoolbox-3/PsychSourceGL/Source/Common/Eyelink/EyelinkEDKVersion.c
PROJECTS: Eyelink
AUTHORS:
brian@sr-research.com br
*/
#include "PsychEyelink.h"
static char useString[] = "[edkVersionString] = Eyelink('EDKVersion')";
static char synopsisString[] = "Returns a string with the eyelink_core library version number.\n";
static char seeAlsoString[] = "";
/*
ROUTINE: EyelinkDllVersion
PURPOSE:
Returns the eyelink_core library version number.
returns: 0 if no reply, else time
*/
PsychError EyelinkEDKVersion(void)
{
char strEdkVersion[40];
//all sub functions should have these two lines
PsychPushHelp(useString, synopsisString, seeAlsoString);
if(PsychIsGiveHelp()){PsychGiveHelp();return(PsychError_none);};
//check to see if the user supplied superfluous arguments
PsychErrorExit(PsychCapNumInputArgs(0));
PsychErrorExit(PsychRequireNumInputArgs(0));
PsychErrorExit(PsychCapNumOutputArgs(1));
eyelink_dll_version(strEdkVersion);
PsychCopyOutCharArg(1, FALSE, strEdkVersion);
return(PsychError_none);
}
|