Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

C

How do I set a conditional breakpoint in gdb, when char* x points to a string whose value equals “hello”?

by IT Nursery

Can I specify that I want gdb to break at line x when char* x points to a string whose value equals “hello”? … Read more

Tags c, conditional-breakpoint, debugging, gdb

Warning/error “function declaration isn’t a prototype”

by IT Nursery

I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf(“Hello, World!\n”); return (0); } File mylib.h: #include <stdio.h> extern … Read more

Tags c, gcc

What’s an object file in C?

by IT Nursery

I am reading about libraries in C but I have not yet found an explanation on what an object file is. What’s the … Read more

Tags c, compilation, linker, object-files

Is there an alternative sleep function in C to milliseconds?

by IT Nursery

I have some source code that was compiled on Windows. I am converting it to run on Red Hat Linux. The source code … Read more

Tags c, linux, sleep

memcpy() vs memmove()

by IT Nursery

I am trying to understand the difference between memcpy() and memmove(), and I have read the text that memcpy() doesn’t take care of … Read more

Tags c, memcpy, memmove

Is gcc’s __attribute__((packed)) / #pragma pack unsafe?

by IT Nursery

In C, the compiler will lay out members of a struct in the order in which they’re declared, with possible padding bytes inserted … Read more

Tags c, gcc, pragma-pack

Can’t compile C program on a Mac after upgrade to Mojave

by IT Nursery

I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my … Read more

Tags c, gcc, macos, terminal

Split string with delimiters in C

by IT Nursery

How do I write a function to split and return an array for a string with delimiters in the C programming language? char* … Read more

Tags c, split, string

What’s the difference between “mod” and “remainder”?

by IT Nursery

My friend said that there are differences between “mod” and “remainder”. If so, what are those differences in C and C++? Does ‘%’ … Read more

Tags c, math, operators

Why does scanf() need “%lf” for doubles, when printf() is okay with just “%f”?

by IT Nursery

Why is it that scanf() needs the l in “%lf” when reading a double, when printf() can use “%f” regardless of whether its … Read more

Tags c, length-modifiers, scanf
Post navigation
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page24 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery