Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~613 People Reached
Favorite Forums
Favorite Tags
c x 11
Member Avatar for techno_weenie

Hello i'm getting a segmentation fault in my is_validport() function and could somebody people point out what i'm doing wrong please? [CODE]#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> #include <string.h> /* Function definitions. */ //char *is_uid(char *s); char *is_destportseq(char *s); char *is_destport(char *s); char *is_validport(char *s); char *trimwhitespacestartandend(char *str); …

Member Avatar for techno_weenie
0
194
Member Avatar for techno_weenie

I need to parse a file line by line and check if the line is in a valid BNF format and print it out if it is. Below is my BNF grammar: <line> ::= <program names><spaces><uids><spaces><dest IPs><spaces><ports> <spaces> ::= <blank character> | <blank character><spaces> <blank character> ::= ' ' | …

Member Avatar for IsharaComix
0
129
Member Avatar for techno_weenie

Hello, I'm trying to split a string into 4 separate strings using a delimiter "\n" The initial string is: "/usr/bin/ssh \n * \n 147.188.195.15, 147.188.193.15, 147.188.193.16 \n 22" I would like it to be split up into four different char's so that char *programnames = "/usr/bin/ssh \n" char *uids = …

Member Avatar for jephthah
0
142
Member Avatar for techno_weenie

Hello i need some help with parsing a string as i'm very new to C and only started learning it a few days ago. I wish to parse the string "Jan 15 05:46:07 gateway kernel: IN=eth0 OUT= MAC=00:80:c7:c3:c7:be:08:00:03:23:2a:a8:08:00 SRC=80.232.253.76 DST=80.234.144.54 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=43600 DF PROTO=TCP SPT=3329 DPT=135 WINDOW=16384 …

Member Avatar for techno_weenie
0
148