/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <string.h>

struct S
{
    int iv1;
    int iv2;
    char* sv1;
    char* sv2;
};

__declspec(dllexport) void __stdcall X2(struct S* s)
{
    s->iv2 = 2 * s->iv1;
    strcpy(s->sv2, s->sv1);
    strcat(s->sv2, s->sv1);
}
