Check Storage Capacity Snippets


Converts the given floating-point value to a zero-terminated string. The supplied buffer should be large enough to accommodate the converted value. The value includes a decimal point and possiblesign and exponent information, plus a terminating null character, which is appended automatically. Returns: a pointer to zero-terminated...

25 May, 2013   

PHP code for how to get Remote IP Address

23 September, 2013   

Convert an IP address to an integer for easier storage. Also, convert an integer back to an IP address.

An example code for Delphi function to check drive letter to see if its valid

23 October, 2012   

MySQL code example for sorting data in a GRID

10 September, 2011   

Example code showing how to add a primary constraint. This Oracle constraint is used to identify the primary key for a table. A primary key is a single field or combination of fields that uniquely defines a record. None of the fields that are part of the primary key can contain a null value. A table can have only one primary key. This...

Delphi code to check you are connected to the Internet

C code example to check whether the given point P is inside a Triangle or Not

16 November, 2013   

This function lets you check whether an date event should recur on a specified date. This is handy for calendar, billing and reminder applications.

16 August, 2011   

Here are the code for checking running iOS 4++

02 February, 2013   

An array that could dynamically adjust its size for a fluctuating capacity by SunnyD

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY...

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY flag...

23 November, 2013   

Lets say you have a table with field called "tags" that consists from tags separated by commas and you want to check whether it includes a required tag. Here the simplest ways of doing that.

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

PHP’s rmdir function does not allow the deletion of a folder if it is not empty.

This program checks whether an year (integer) entered by the user is a leap year or not.

19 July, 2012   

E-mail validation is perhaps the most used validation in web forms, this code will validate email address and also optionally check the MX records of the domain provided in email address to make email validation more robust.

19 October, 2011   

An example to check Weekend

C code example for useful macros, functions and tricks