Exemplo n.º 1
0
LList* XGMCommand_createYMPort1Commands(LList* commands)
{
    LList* result;
    LList* src;

    result = NULL;
    src = commands;

    while (src != NULL)
        result = insertAfterLList(result, XGMCommand_createYMPort1Command(&src));

    return getHeadLList(result);
}
Exemplo n.º 2
0
List* XGMCommand_createYMPort1Commands(List* commands)
{
    List* result;
    int offset;

    // allocate
    result = createList();

    offset = 0;
    while (offset < commands->size)
        addToList(result, XGMCommand_createYMPort1Command(commands, &offset));

    return result;
}