Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged c

0 votes
721 views
1 answer
    How can I determine the absolute path of a file or directory from a given relative path in C/C++ on GNU/ ... in a certain subdirectory or not. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
907 views
1 answer
    FILE *out=fopen64("text.txt","w+"); unsigned int write; char *outbuf=new char[write]; //fill outbuf printf ... im at a position besides 25755? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
818 views
1 answer
    I am new to Linux programming I tried to compile a simple test construction. But I'm getting an error when ... printf("Blijkbaar wel!"); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
603 views
1 answer
    If a close(2) system call fails with EIO, will the file descriptor still be deleted? If yes, is it not ... one prevent a file descriptor leak? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
712 views
1 answer
    I am trying to implement the range reduction operation for trigonometry. But instead I think it might be better ... values to cosine and sine. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    When an assert() call fails, what is the exit code used, and where is it documented? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
738 views
1 answer
    I just wrote a small program that reads command line arguments in C, nothing too difficult. I was also modifying them ... argc, char *argv[]) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
735 views
1 answer
    When I was first introduced to C I was told to always declare my variables at the top of the function. Now ... I tried the malloc() version. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
831 views
1 answer
    I am trying to make a function to check the input of the user and let them try again in case they enter a wrong ... ) flag=1; } return size; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
702 views
1 answer
    I use the command below to view the maximum number of threads my system allows: # cat /proc/sys/kernel/threads-max ... , with 12 cores, 48G RAM. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
661 views
1 answer
    I want to return a string from a function (in the example funzione) to main. How to do this? Thank you! #include < ... ; free (ptr); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
622 views
1 answer
    I'm having trouble with a practice problem from my textbook. I have to fill in the missing parts of the C code ... anyone clear this up for me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
726 views
1 answer
    Comparing Same Float Values In C strange output in comparison of float with float literal Float addition ... this unexpected behaviour ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
524 views
1 answer
    gSoap generated client-side structure initialization and use (using ANSI C bindings) After reading through gSoap ... a calling application? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
831 views
1 answer
    Earlier I asked one question that is if the return of malloc is cast then the error which would be flagged is ... please explain me about that. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
540 views
1 answer
    Expanding on my a previous exercise, I have a text file that is filled with one word per line. hello hi ... any thoughts, comments, complains? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
625 views
1 answer
    I have the following c code : #include <stdio.h> #include <stdlib.h> void *func(int a) { if (a==3) { int ... possible ? If so, how to do it ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
878 views
1 answer
    I am new to the cmake. I wrote a simple cmake file and ran it in the cmake GUI. But it is displaying ... (Tutorial Tutorial.c) Please help me. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
779 views
1 answer
    I'm programming for a while now(beginner), and recursive functions are a somewhat abstract concept for me. I ... I'm still backtracking why. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
775 views
1 answer
    I'd like to monitor a directory for new files from a C app. However, I'm not interested in modified files, ... a list of files? Cheers, Martin. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
727 views
1 answer
    I would like to copy binary file source to file target. Nothing more! The code is inspired from many examples ... correct? What am I missing? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
848 views
1 answer
    I'm having a weird problem i'm trying to read a string from a console with scanf() like this scanf("%[^ ]" ... . I'm trying it in gcc compiler See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
873 views
1 answer
    here a a piece of code that is supposed to loop over and over until the user inputs a number between 0 and ... explain this black magic to me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
646 views
1 answer
    I am trying to take in a .bmp file and eventually edit the pixels one by one but I am coming up with a ... ; //close the files prior to exiting See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to understand how I should think about getting the k-th key/element in a B-tree. Even if it's ... -th smallest key in the B-tree. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
693 views
1 answer
    I want to measure memory bandwidth using memcpy. I modified the code from this answer:why vectorizing the loop does not have ... (a, b, LEN); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
931 views
1 answer
    This is a follow-up to this other question I was trying to establish at compile time whether a specific ... question let think) why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
931 views
1 answer
    How can I resolve the following linking error: LINK : fatal error LNK1561: entry point must be defined" ... example with Visual Studio 2008. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...