-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlecture4.c
More file actions
25 lines (22 loc) · 798 Bytes
/
lecture4.c
File metadata and controls
25 lines (22 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//This is Homework 1...we will add to it
//
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include "lecture4.h"
extern void process(struct _data *);
;
;
;
int main(int argc, char* argv[])
{
FILE *filepointer;
int i;
struct _data my_struct;
// char *my_string[]="
my_struct.payload=(char *)malloc(sizeof(char)*13);
my_struct.payload="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsome random string constitutes this payload";
my_struct.portnumber=53;
process(&my_struct);
return(0);
}