Forum: C++ 7 Days Ago |
| Replies: 4 Views: 1,727 Because you didn't specify the size of send_buffer.
try like that:
char send_buffer[BUF_LEN]; |
Forum: C Aug 19th, 2009 |
| Replies: 1 Views: 185 Hello,
I was just trying to write some simple codes to learn C. I wrote 3 functions, create a list,print a list and free a list.
but i get segfault while printing the list. (by the way, list is... |
Forum: C Jul 10th, 2009 |
| Replies: 2 Views: 647 Hi
I use ctags and vi integrated. It's fine for now but I wonder if it's possible to find usages of a function?
May be someone helps.
Thanks in advance. |
Forum: C Jul 10th, 2009 |
| Replies: 4 Views: 293 thanks very much for the answers. |
Forum: C Jul 9th, 2009 |
| Replies: 4 Views: 293 hello,
i was looking at a program someone wrote.
I saw something like that:
name = (char*) strdup(path);
strdup already returns char *, so why do we need casting here?
did he do a wrong thing... |
Forum: Shell Scripting Jul 6th, 2009 |
| Replies: 2 Views: 622 Hello,
I have lots of xml files in the same format and I need to modify a xml tag in these files.
i loop over the files and apply sed to the files to make the modification but CPU goes to %100... |
Forum: C Jun 27th, 2009 |
| Replies: 16 Views: 831 And also,
With C99, you can use an index in brackets in the initialization list to specify a particular element:
int arr[6] = {[5] = 212}; // initialize arr[5] to 212 |
Forum: C Jun 24th, 2009 |
| Replies: 2 Views: 372 |
Forum: C Jun 24th, 2009 |
| Replies: 16 Views: 831 thanks everyone for informative answers. |
Forum: C Jun 23rd, 2009 |
| Replies: 16 Views: 831 i couldn't understand the "." format... |
Forum: Java Jun 23rd, 2009 |
| Replies: 1 Views: 407 i'm not sure but maybe it will be faster if you write a C function that does this job and use it via JINI..
just a suggestion. |
Forum: C Jun 23rd, 2009 |
| Replies: 16 Views: 831 In a book, I saw a definition like this:
static struct map_info mymap = {
.name = “mymap”,
.phys = FLASH_START_ADDR,
.size = FLASH_LENGHT,
.bankwidth = FLASH_WIDTH,
};
what does it... |
Forum: C++ Jun 18th, 2009 |
| Replies: 1 Views: 704 hello,
i need a tool to measure the cyclomatic complexity of a given C source file.
what do you suggest for this?
thanks.. |
Forum: C Apr 30th, 2009 |
| Replies: 3 Views: 537 Hi,
I try to write a small socket program in my Linux machine.
I go on the Beej's guide but I cant compile the sample because, i have not the function:
get_in_addr(..........) in my Linux.... |
Forum: C++ Mar 10th, 2009 |
| Replies: 2 Views: 433 your definition is local in the function 'createMTable' at line 28:
vector<string> MTable;
you fill the vector but it's destructed at the end of the function. |
Forum: C++ Mar 10th, 2009 |
| Replies: 4 Views: 390 |
Forum: C++ Feb 23rd, 2009 |
| Replies: 2 Views: 5,575 |
Forum: C++ Jan 27th, 2009 |
| Replies: 3 Views: 297 |
Forum: C++ Jan 27th, 2009 |
| Replies: 3 Views: 297 I really can't understand why the belove code gives error. I get this error:
In function 'int* bubble_sort(int*)':
error: no matching function for call to 'swap(int*&, int&, int&)'
May someone... |
Forum: C++ Jan 12th, 2009 |
| Replies: 4 Views: 1,727 Hello,
I try to use POSIX Message Queue API and in the doc it says that:
#include <mqueue.h>
int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
unsigned msg_prio);
The mq_send()... |
Forum: C++ Jan 4th, 2009 |
| Replies: 6 Views: 380 Hello
It would be great if someone suggest me a library for handling configuration files.Is there a general method for this job?
PS:i need it for *nix platforms
Thanks in advance. |
Forum: Java Nov 9th, 2008 |
| Replies: 1 Views: 383 hello
i try to use SLF4J for logging. i try something like this:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import util.HibernateUtil;
public class Main {
public static... |
Forum: C++ Oct 14th, 2008 |
| Replies: 0 Views: 346 hello,
i need your opinion about selecting a networking library.
ACE or Boost.Asio ?
anyone know pros and cons of these?
as i saw, ACE is stronger and well documented.
but i didn't work with... |
Forum: C++ Sep 2nd, 2008 |
| Replies: 3 Views: 465 I can connect to the server via ssh or telnet but I'm not good at using Vim with multiple files. that would be very nice if there were a IDE plugin or an editor which do that. |
Forum: C++ Sep 2nd, 2008 |
| Replies: 3 Views: 465 Hello
I need an editor or IDE to edit source files over FTP. Sources and the development environment is on a Unix server and I need to edit these files. There's an editor or an IDE plugin to do... |
Forum: C++ Aug 20th, 2008 |
| Replies: 7 Views: 1,192 hello
do the member functions of a class occupy memory or just the member variables occupy memory? |
Forum: C++ Jul 20th, 2008 |
| Replies: 3 Views: 618 hello,
i want to learn if there's memory leak problem in my code...Let me explain:
I have a Customer class,that class also have a destructor function.
I have a static function in that class which... |
Forum: C++ Jul 10th, 2008 |
| Replies: 1 Views: 348 What's the best way to transfer image files from the client application to the server application?using TCP or FTP?
and a second question: there's a way for portable fork() ? i want it to be... |
Forum: C++ Jun 26th, 2008 |
| Replies: 5 Views: 593 thanks..that solved the problem:
int N=12;
char buf[10];
itoa(N,buf,10);
printf("%0*d",strlen(buf)+1,N); |
Forum: C++ Jun 26th, 2008 |
| Replies: 5 Views: 593 thanks very much. but actually, i need to do that dynamically. i mean, i can't know if it would be "%3d" at first... |
Forum: C++ Jun 26th, 2008 |
| Replies: 5 Views: 593 hello
I need to do something like this:
for ex. if the N is 12 then, i will produce strings like "001" "002" "003" "004" ... "012"
if the N is 6 then, I will produce strings like "01" "02" ...... |
Forum: C++ Jun 11th, 2008 |
| Replies: 0 Views: 616 hello
there's a simple method to track the build number of the application? |