pastebin

Paste #81959: Untitled C paste by 219.142.245.75

#include <stdio.h>
#include <stdlib.h>

#define MAX_X_NUM 128
#define MAX_Y_NUM 4096

typedef struct
{
    char s1[128];
    char s2[128];
}detail_stru;

typedef struct
{
    int num;
    detail_stru detail[128];
    
}

int test(test_stru * p_data)
{
    int i = 0;
    char temp[MAX_X_NUM][MAX_Y_NUM] = { {0} };
    int test_num = 0;

    while (i < p_data->num)
    {
        sprintf(temp[i], "%s, %s", p_data->detail[i].s1, p_data->detail[i].s2);
        i++;
    }

    temp_num = p_data->num;
    if (temp_num > 0)
    {
        another_test(temp, test_num);
    }

    return 1;
}

Private
Wrap long lines

4 + 3 =