Graduated at Portsmouth University on a Computing Degree. Keen software and website developer on the lookout to learn new things and am also a big android fan.

2d
awarded Popular Question
May
20
awarded Nice Question
May
10
awarded Good Question
May
7
awarded Famous Question
May
1
awarded Notable Question
Apr
30
comment Clear the last element from a linked list
Thanks for the detailed answer very helpful. I went for the first option of doing *outboundLeg = NULL and this seems to have resolved the problem.
Apr
30
accepted Clear the last element from a linked list
Apr
30
comment Clear the last element from a linked list
@MOehm I'm not to see so now how I would do that. I'm quite new to C so still learning it as I go along. From the code I have I thought it would be updating the linkedlist from the passed in pointer reference so I wouldn't need to explicitly update it as the code is updating the passed in pointer
Apr
30
comment Clear the last element from a linked list
The memory for the string is strdup'ed for the target. Regarding the arguments, the function was originally written a different way and then realised they weren't needed, so yes, at the moment they are unused
Apr
30
revised Clear the last element from a linked list
Improved formatting
Apr
30
asked Clear the last element from a linked list
Apr
10
comment Create Chart.js pie chart data from PHP
Thanks for your help, I've parsed the json as you suggested and used the parseint on the value and it looks like its working now. It is confusing, especially as the bar chart you can just drop a json object straight into it and it wors
Apr
10
accepted Create Chart.js pie chart data from PHP
Apr
10
comment Create Chart.js pie chart data from PHP
Sorry, don't think I've explained myself, its PHP generating the array and then echoing the json_encoded array which javascript gets as the result of an jquery post
Apr
10
comment Create Chart.js pie chart data from PHP
So does that mean I need to create an object separately and loop around the json to create the array myself. I was hoping PHP could send the response and I could just put this response straight into chart.js without needing to manually parse the json
Apr
10
asked Create Chart.js pie chart data from PHP
Apr
8
comment DateTime->format(epoch) returning the wrong date
OK thanks for your help though
Apr
8
comment DateTime->format(epoch) returning the wrong date
Thanks, I missed the @ in the manual. What's the meaning of the @ it seems a bit odd, I can't see the reason for the manual
Apr
8
accepted DateTime->format(epoch) returning the wrong date
Apr
8
asked DateTime->format(epoch) returning the wrong date
1 2 3 4 5