User Profile

Collapse

Profile Sidebar

Collapse
linbl352
linbl352
Last Activity: Dec 1 '06, 08:11 PM
Joined: Apr 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • linbl352
    started a topic about panda PDF generator
    in C

    about panda PDF generator

    Does anybody use panda lib to generate PDF file in C on Linux?
    I have a question here:
    I found it becomes more slowly when it creates a PDF file more than 100 pages. what is probably problem for that, is it some problem with panda lib? or too much memory used?

    Thanks
    See more | Go to post

  • linbl352
    started a topic coredump with mysql_real_query

    coredump with mysql_real_query

    When I executed a MYSQL query command, a coredump cames out. But not all the time, it means the program will appear core dump sometimes. Does anybody can tell me why it happens?
    The following is the core debug informations.
    by the way, I executed the SQL statement in the MYSQL-front directly, no retult returned.

    #0 0x00fe1402 in __kernel_vsysca ll ()
    #1 0x00b7a1f8 in raise () from /lib/libc.so.6
    #2 0x00b7b948...
    See more | Go to post

  • linbl352
    started a topic tsearch questions
    in C

    tsearch questions

    Does anybody can tell me the following answers?
    In the description of tsearch function, what is purpose of the callback function( compar) as follows:
    void *tsearch(const void *key, void **rootp,
    int(*compar)(co nst void *, const void *));

    also, basicly what are the two parameters in the function (compar)?
    See more | Go to post

  • linbl352
    started a topic Need information about network protocols in C
    in C

    Need information about network protocols in C

    Hi everybody,

    I am doing network lower programming. Does anybody have some information about most protocols' data structures which is decribed in C language. Please give me an advise.

    Thanks.
    See more | Go to post

  • linbl352
    replied to about general report function
    yes. this is a solution of that problem.
    But, if I change the orientation style from portrait to landscape when I print the report, I have to change the parameters in function print_report(10 0,200). If there are many print_report(10 0,200) calls, It will cost much time on doing that multiple job.
    So, What I am looking for is automatically adjusting the postion according to the paper's size( width and height )
    See more | Go to post

    Leave a comment:


  • linbl352
    started a topic about general report function

    about general report function

    hi,

    Does anybody have an idea about how to write a general report generator module?

    Right now, I can create a report file by coding the specific position on a page. codes like following:
    print_textbox(F ile, Page, 100, 100, 200, 300, "Hello");
    It means It prints the string "Hello" at the location starts from (100, 100) to(200,300 ).
    So, If I want to print the text at another...
    See more | Go to post

  • linbl352
    replied to nftw question?
    in C
    I have gotten the idea from somebody.
    Just add "#include _XOPEN_SOURCE 500" at the 1st line of codes.
    See more | Go to post

    Leave a comment:


  • linbl352
    replied to nftw question?
    in C
    the definitions of struct of FTW and 'FTW_MOUNT' are all in the ftw.h file. That is why I don't understand.
    See more | Go to post

    Leave a comment:


  • linbl352
    started a topic nftw question?
    in C

    nftw question?

    hi everyone,

    I am going to code a program for visit files in a directory. Follows are my codes:

    #include <ftw.h>
    #include <string.h>
    #include <stdio.h>

    int fn(const char *file, const struct stat *sb, int flag, struct FTW *s)
    {
    FILE *fp;
    char line[128+1];
    int count =0;

    if( flag==FTW_F ){
    if(strstr(file, "status")!=NULL ){...
    See more | Go to post
No activity results to display
Show More
Working...