Language Selection

English French German Italian Portuguese Spanish

C/C++ Programming

Filed under
Development
  • How to use Strcpy() in C language?

    In this article, we are going to learn about the strcpy() function in the C programming language. The strcpy() function is a very popular standard library function to perform the string copy operation in the C programming language. There are several standard header files in C programming language to perform standard operations. The “string.h” is one of such header files, which provides several standard library functions to perform string operations. The “strcpy()” function is one of the library functions provided by “string.h”.

  • How to Use C++ Vector

    An array is a series of same object types in consecutive memory locations. An array cannot increase ore reduce in length. A vector is like an array, but its length can be increased or reduced. A vector, therefore, has many more operations than an array.

    C++ has many libraries, all of which form the C++ Standard Library. One of these libraries is the container library. A container is a collection of objects, and certain operations can be performed on the collection. C++ containers can be grouped into two sets: sequence containers and associative containers. Sequence containers are vector, array (not the same array discussed previously), deque, forward_list, and list. These are different collections (array-like data structures), and each offers distinct trade-offs.

    Any programmer should know how to decide whether to use a vector, an array, a deque, a forward_list, or a list. When a programmer needs a structure that requires more operations than those associated with an ordinary array, the ordinary array should not be used.

    If the task involves frequent insertions and deletions in the middle of the sequence, then a list or forward_list should be used. If the task involves frequent insertions and deletions in the beginning or end of a sequence, then a deque should be used. A vector should be used when these kinds of operations are not required.

  • How to Use isalpha() in C Language

    There are several standard library header files in the C programming language used to perform various standard operations. The “ctype.h” is one such header file, and the “isalpha()” function is one of the library functions provided by “ctype.h.” The isalpha() library function is used to identify whether a character is an alphabet. In this article, you will learn about the isalpha() library function in C language.

  • NVIDIA C++ Standard Library Now Available Via GitHub

    Introduced last year as part of CUDA 10.2 was libcu++ as the CUDA C++ standard library, which works with not only NVIDIA CUDA enabled configurations but also CPUs. The libcu++ sources are now available via GitHub.

More in Tux Machines

Septor 2020.5

Tor Browser is fully installed (10.0.2) System upgrade from Debian Buster repos as of October 21, 2020 Update Linux Kernel to 5.9.0-1 Update Thunderbird to 78.3.1-2 Update Tor to 0.4.4.5 Update Youtube-dl to 2020.09.20 Read more

Incremental backup with Butterfly Backup

This article explains how to make incremental or differential backups, with a catalog available to restore (or export) at the point you want, with Butterfly Backup. Read more

Regressions in GNU/Linux Evolution

  • When "progress" is backwards

    Lately I see many developments in the linux FOSS world that sell themselves as progress, but are actually hugely annoying and counter-productive. Counter-productive to a point where they actually cause major regressions, costs, and as in the case of GTK+3 ruin user experience and the possibility that we'll ever enjoy "The year of the Linux desktop". [...] We live in an era where in the FOSS world one constantly has to relearn things, switch to new, supposedly "better", but more bloated solutions, and is generally left with the impression that someone is pulling the rug from below one's feet. Many of the key changes in this area have been rammed through by a small set of decision makers, often closely related to Red Hat/Gnome/freedesktop.org. We're buying this "progress" at a high cost, and one can't avoid asking oneself whether there's more to the story than meets the eye. Never forget, Red Hat and Microsoft (TM) are partners and might even have the same shareholders.

  • When "progress" is backwards

Graphics: Vulkan, Intel and AMD

  • NVIDIA Ships Vulkan Driver Beta With Fragment Shading Rate Control - Phoronix

    This week's Vulkan 1.2.158 spec release brought the fragment shading rate extension to control the rate at which fragments are shaded on a per-draw, per-primitive, or per-region basis. This can be useful similar to OpenGL and Direct3D support for helping to allow different, less important areas of the screen be shaded less than areas requiring greater detail/focus. NVIDIA on Tuesday released the 455.26.02 Linux driver (and 457.00 version for Windows) that adds this fragment shading rate extension.

  • Intel Begins Adding Alder Lake Graphics Support To Their Linux Driver - Phoronix

    Intel has begun adding support for Alderlake-S to their open-source Linux kernel graphics driver. An initial set of 18 patches amounting to just around 300 lines of new kernel code was sent out today for beginning the hardware enablement work on Alderlake-S from the graphics side. Yes, it's only a few hundred lines of new driver code due to Alder Lake leveraging the existing Gen12/Tigerlake support. The Alder Lake driver patches similarly re-use some of the same workarounds and changes as set for the 14nm Rocket Lake processors with Gen12 graphics coming out in Q1.

  • AMD Linux Driver Preparing For A Navi "Blockchain" Graphics Card - Phoronix

    While all eyes are on the AMD Radeon RX 6000 "Big Navi" graphics cards set to be announced next week, it also looks like AMD is preparing for a Navi 1x "Blockchain" graphics card offering given the latest work in their open-source Linux driver. Patches posted today provide support for a new Navi graphics card referred to as the "navi10 blockchain SKU." The Navi 10 part has a device ID of 0x731E. From the AMDGPU Linux kernel driver perspective, the only difference from the existing Navi 10 GPU support is these patches disable the Display Core Next (DCN) and Video Core Next (VCN) support with this new SKU not having any display support.