Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. guillermoandres

    Malloc doubt

    Its way more than I asked for. I got lost in the code. My program its quite long and I dont understand how can I integrate it with what you have written. Please, if you can, try to explain it a little bit more. Thanks a lot anyway.
  2. guillermoandres

    Malloc doubt

    Ok I understand your proposal but the problem is that I need to print out the string in a graphical interface, so it's important for me to print only the important information and not a lot of blank spaces.
  3. guillermoandres

    Malloc doubt

    Because I need to check every character before concatenate it. Is there another (better) way to do this??
  4. guillermoandres

    Malloc doubt

    Sorry I meant was: str1 = "ExampleA" second loop str1 = "ExampleAp" third loop str1 = "ExampleApp" and so on.
  5. guillermoandres

    Malloc doubt

    Thank you very much. gchar corresponds to the standard C char type and is defined in the Glib library. What I want to do with this two functions is that if I have gchar *str1 ="Example"; gchar *str2 ="Append"; while *str2 is different of CR (carriage return) and LF (line feed) append to...
  6. guillermoandres

    Malloc doubt

    Hello everyone. I have a little doubt about freeing allocated memory. I'm using this two functions. gchar* status_code (gchar *status) { gchar* data = ""; sip_status ++; while (*status != CR && *(status+1) != LF) { data = concatenar_char(data,status); status ++; } return...
  7. guillermoandres

    DHCP / NAT / Dyn DNS / SIP Configuration

    Hi All. I need some help with some configurations. Excuse me for my bad English. So I have this configuration in my lab: --------- ------ -------- ----------------- SIP phone|<-->|Router|<-->|Internet|<-->|ADSL Modem/Router| <--> --------- ------ --------...
  8. guillermoandres

    Problem Capturing SIP Header

    Hi!. Right now I'm developing a simple SIP sniffer. I'm having problems capturing the SIP header. I'm using a socket to read from the NIC (fill a buffer). Then I use a pointer and these two fuctions to read from the receive buffer. int captar_linea(char *sip_line) { u_int8_t count...

Part and Inventory Search

Back
Top