File: EyelinkEDKVersion.c

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (45 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download
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);
}