modf() in C/C++
In C++, modf() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. All the functions available in this library take double as an argument and return double as the result. modf() function breaks the given argument into two parts, one is integer and the other one is fractional. Integer part is stored in the memory address pointed by the pointer which is passed as second argument in the function and the fractional part is returned by the function. Syntax:...
read more
Header Files in C
In C language, header files contain a set of predefined standard library functions. The .h is the extension of the header files in C and we request to use a header file in our program by including it with the C preprocessing directive “#include”....
read more
ispunct() function in Csyntax:
The ispunct() function checks whether a character is a punctuation character or not. The term “punctuation” as defined by this function includes all printable characters that are neither alphanumeric nor a space. For example ‘@’, ‘$’, etc. This function is defined in ctype.h header file....
read more
Print a long int in C using putchar() only
Write a C function print(n) that takes a long int number n as argument, and prints it on console. The only allowed library function is putchar(), no other function like itoa() or printf() is allowed. Use of loops is also not allowed....
read more
Python VLC MediaPlayer – Setting Play Rate
In this article we will see how we can set media play rate of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc module for playing the video. We can create a MediaPlayer object with the help of MediaPlayer method. Media play rate is basically is the speed of the video, more the rate faster the video get played, default value is 1.0, in order to slow down the video set rate value less than 1....
read more
trunc() , truncf() , truncl() in C language
All three functions are used to remove digits after decimal point and return the modified decimal number. trunc() : Truncates a double value after the decimal point and gives the integer part as the result. The return value and the arguments are of the type double....
read more
isalnum() function in C Language
isalnum() function in C programming language checks whether the given character is alphanumeric or not. isalnum() function defined in ctype.h header file. Alphanumeric: A character that is either a letter or a number. Syntax:...
read more
Python VLC MediaPlayer – Getting Current State
In this article we will see how we can get current state of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc module for playing the video. We can create a MediaPlayer object with the help of MediaPlayer method. Current state can be playing paused or nothing special if no video is played, it depend on the media player object....
read more
C islower()
islower() function is used to check whether a character is a lowercase letter or not. It is a standard library function defined in the <ctype.h> header file....
read more
isxdigit() function in C Language
isxdigit() function in C programming language checks that whether the given character is hexadecimal or not. isxdigit() function is defined in ctype.h header file. Hexadecimal equivalent of Decimal Numbers:...
read more
Python VLC MediaPlayer – Toggling Full Screen
In this article we will see how we can toggle full screen of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc module for playing the video. We can create a MediaPlayer object with the help of MediaPlayer method. Toggle fullscreen status on non-embedded video outputs. by default media is not in the full screen mode....
read more
Python VLC MediaPlayer – Setting MRL to play
In this article we will see how we can set mrl the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc module for playing the video. We can create a MediaPlayer object with the help of MediaPlayer method. MRL is the media resource locator, in other words it is the destination of the media to be played....
read more