Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements

28 Posted Topics

Member Avatar for sgriffiths

Hello I would like to count how many words are in a string ie "PETER JOHNSON LTD" so this string contains 3 I was going to use strtok but this is too slow. Any other ideas?

Member Avatar for jephthah
0
270
Member Avatar for sgriffiths

Hello I need to be able to search through directorys using 1 find command The issue i have is as follows I need to search /titan/client/c0021/upload/new_debt /payments /changes The c0021 part is a user id, so when users come onto the system, that number will keep increasing so i need …

Member Avatar for TheOgre
0
70
Member Avatar for sgriffiths

Help! I need to total up values which are monetary ie VAR1=123.20 ( £123.20p) VAR2=2000 ( £2000 ) can i do this using expr, i can total them up, but lose the .20p Any help would be much appreciated

Member Avatar for masijade
0
65
Member Avatar for sgriffiths

Hello I have a string "c0024" How can i get rid of non numeric digits, so i am left with 0024 removed "c" I cannot think of a way of doing this

Member Avatar for radoulov
0
88
Member Avatar for sgriffiths

Hello I have some files with the date included in the filename the format is limited_file_11012007.dat so this is the 11th January 2007 I have numerous files eg limited_file_23012006.dat limited_file_02122005.dat limited_file_23012006.dat limited_file_31032006.dat I want to pick the file that is the closet day after today, ie todays date would be …

Member Avatar for pty
0
96
Member Avatar for sgriffiths

hello i have the following char Ambiglist[1000]; this variable contains a company name and postcode, but there may be numerous of both ie STEPHEN COMPANY LTD;TN25 8a7 JOHN JACKSON LTD;98asHHS HUMBURG LTD;8JSHAKS i want to read in and store the company names in a variable, but i cant for the …

Member Avatar for gcs584
0
188
Member Avatar for sgriffiths

hello All I am pretty stuck and would like any help or assiatance I am creating a web page with 2 fields First field would be a username Second field would be a user_id I want the user to be able to enter their username So for example "stephen" I …

Member Avatar for Rhyan
0
368
Member Avatar for sgriffiths

Hello all I want to be able to search a string and remove non a-z chars and also search for certain words and then remove them ie. char string[25]="STEPHEN JOHNSON - LTD" So i use isalpha to get rid of the non a-z string i am left with STEPHENJOHNSONLTD LTD …

Member Avatar for mkadwa
0
110
Member Avatar for sgriffiths

Hello I have wrote a peice of C code on Sun Solaris. When i have tried to compile the code on a linux machine i get the below messages the compiling options i am using are 'MAKEFILE_OS=Linux' \ 'LINK_OPTIONS=-std=c99' \ 'CFLAGS=-std=c99 -DVERSION=$(VERSION) -DID=$(ID) - D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DLinux' \ 'LINK=-Wl,+vnocompatwarnings' split_field.c:1807: …

0
62
Member Avatar for sgriffiths

Hello All i have a program written in C, and i want to call a sharedobject, which i can do fine! The only problem i am having is passing parameters.. Here is my code [code] int main() { static int (*fp)(int); int *handle; int MatchFound; struct SharedObject_{ char name[10]; char …

Member Avatar for Salem
0
1K
Member Avatar for sgriffiths

Hello all I want to split regular expression values in the list (in quotes) list("A","B"....... ) What is the best way to go about this? Regards

Member Avatar for ~s.o.s~
0
98
Member Avatar for sgriffiths

Hello I have a var="STEPHEN,GRIFFITHS" how can i check to see if a variable contains a certain character, ie a comma (,) Thanks

Member Avatar for masijade
0
58
Member Avatar for sgriffiths

Hello I have a web page which has a drop down menu. I want the user to select an option from the drop down menu, then click submit. This will then activate my php script and select data from my MYSQL database and populate the fields. How do i action …

Member Avatar for digital-ether
0
146
Member Avatar for sgriffiths
Member Avatar for paradox814
0
64
Member Avatar for sgriffiths

Hello I am using mysql with html to create a webpage I have a table called people This table has 2 fields, first_name and second_name I have 5 records in this table I want to select this information out of the MYSQL database and into fields on a form These …

Member Avatar for Rhyan
0
85
Member Avatar for sgriffiths

If i have 2 fields and i want the user to enter some details in the first field, but after they enter the details in the first field, i want the second field to automatically default to show "TEST", and not be able to write in this field....how do i …

Member Avatar for tgreer
0
67
Member Avatar for sgriffiths

Hello can anyone help me with the following The below will actually display the Name found part, even though no name actually exists and its just blank, how do i get round this, the string name will contain blanks, but i need to check if blank, then treat as blank. …

Member Avatar for Nick Evan
0
108
Member Avatar for sgriffiths

Hello all I am trying to create a script to do the following: I have a file which contains the following STEPHEN;CHRIS:PETER>JOHN| What i need to do is read this file in and be able to seperate the above names into variables based on the delims. ie Script something like …

Member Avatar for jim mcnamara
0
106
Member Avatar for sgriffiths

Hello All A question i have. I have a file which contains 5 million records. One line of this file may look something like below Adrian Tompson & Sons Ltd. If the last word in each line is Ltd, i need to change it to Limited, but i am truly …

Member Avatar for Micko
0
156
Member Avatar for sgriffiths

Hi I have a struct [code] struct s_list { char name[30]; char lowest[30]; int int_value; }LIST[100]; [/code] I want to pass the int_value to a the unix function qsort, but how do i pass structs to a function/procedure? regards

Member Avatar for ~s.o.s~
0
691
Member Avatar for sgriffiths

Hello i have a a struct which contains the below 1 10 11 2 3 But i need this to be in numeric order, ie 1 2 3 10 11 below is my code [code] do { fprintf(fReport, "List Name = %d\n", LIST[t].name ); t++; } while( t != k …

Member Avatar for dwks
0
142
Member Avatar for sgriffiths

hello I have a program which is being passed 2 lines items at a time To hold these lines i have 2 static pointers, these are:- static char *first_string=NULL; static char *second_string=NULL; These 2 lines will contain data such as:- A1|VALETING|LIMITED A2|COMPANY|VALET|LTD I then use strtok to move through each …

Member Avatar for jim mcnamara
0
235
Member Avatar for sgriffiths

Hello how would i go about converting a string value to HEX ie char name[10]="STEPHEN"; Convert name to HEX

Member Avatar for Dave Sinkula
0
2K
Member Avatar for sgriffiths

Hello if i cut and paste the link in the form bit, i get a response back to the screen, but if i just run this html, it does not work, why? <html> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <head> <title> SMS Card - SMS Gateway </title> </head> <body> <form action="[URL="http://intext.smscard.com/?a=api_balance&login=cdmsdev&password=cdmsdev"]http://intext.smscard.com/?a=api_balance&login=cdmsdev&password=cdmsdev[/URL]" method="post" …

Member Avatar for Lafinboy
0
108
Member Avatar for sgriffiths

mvwprintw(main_screen, row, col, "%*.*s", REC_NUM_SIZE + 2, REC_NUM_SIZE + 2, ptr2); The above mvwprintw command is part of the unix curses library but can anyone explain what the "%*.*s" is doing, and is used just for the unix library curses? Regards

Member Avatar for Narue
0
88
Member Avatar for sgriffiths

Hello if i have a file residing on a unix machine, how do i get the stats of the file, ie date stamp of file, and username of file. Best Regards

Member Avatar for Rashakil Fol
0
85
Member Avatar for sgriffiths

Hello I am trying to write data to a file. When writing "STEPHEN", only STEP is written, can anyone help? below is my code fp = fopen(filename, "rb+" ); fseek(fp, final_seek_pos, SEEK_SET ); fwrite(update_record, sizeof(update_record),1 ,fp ); fclose(fp);

Member Avatar for sgriffiths
0
162
Member Avatar for sgriffiths

Hello I am trying to write some data to a certain position in a file, but cannot get it to work I want to write "XX" to position 6 of a specified file, but the data is just being written to the end of file. see below [code]#include<stdlib.h> main() { …

Member Avatar for sgriffiths
0
2K

The End.