Blog

  • VuGen Custom Function: xstrcat

    Posted on April 23, 2009 by Admin

    // – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
    // Brian Wilson – TechSouth, LLC
    // – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

    // – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
    // xstrcat()
    // more efficient version of strcat
    // – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
    char *xstrcat( char *dest, char *src )
    {
    while (*dest) dest++;
    while (*dest++ = *src++);
    return –dest;
    }
    /*char * xstrcat(char * dest, const char * src) // alternate version Read Entire Entry

  • VuGen: Replace Special Characters

    Posted on April 14, 2009 by Admin

    This function (called EncodeText) may be a bit out of date, but can be used to replace special characters and use different encoding. You could put this in the very top of the vuser_init section of your script, or in the globals.h or other include file.
    //——begin code—————
    EncodeText(New,Orig)
    char *New;
    char *Orig;
    {
    int New_index;
    int Orig_index;
    int len;

    len = strlen(Orig);
    New_index = 0;
    for (Orig_index=0;Orig_index<len;Orig_index++) {
    Read Entire Entry

  • VuGen RTE Protocol: Autogenerate Transactions

    Posted on April 2, 2009 by Admin

    /*

    This custom RTE function will auto generate a transaction timing
    for every TE_wait_text. Paste this code into the top of your script,
    or use as an include file.
    Replace TE_wait_text with this function called TE_custom_wait_text
    using the search and replace tool.

    */

    int TE_custom_wait_text ( char * text, int timeout)
    {
    int rtnCode = 0;
    char myTransName[24];
    char spacelessText[24];
    char * spacePointer;

    memset ( spacelessText, ‘\0’, sizeof(spacelessText));

    {
    * spacePointer = ‘_’;
    }

    sprintf (myTransName, Read Entire Entry