Jump to content

Stubroutine: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m →‎top: clean up using AWB
Cewbot (talk | contribs)
m Normalize {{Multiple issues}}: Remove {{Multiple issues}} for only 1 maintenance template(s): Unreferenced
Line 1: Line 1:
{{Multiple issues|
{{Orphan|date=September 2010}}
{{Orphan|date=September 2010}}
{{Unreferenced|date=August 2014}}
{{Unreferenced|date=August 2014}}
}}


A '''stubroutine''' (also known as a '''stub function''', '''null script''', '''null subroutine''', or '''[[null function]]''') is a [[scripting language|command script]] or [[subroutine|program subroutine]] which does nothing but return a constant value. They are used during [[computer programming|program development]], where the functional implementation of routines is delayed while other routines are developed. This is also one of the techniques used by the [[Copyright infringement of software|software cracking]] community to bypass [[callback (computer science)|callbacks]] and [[software license|license-checking]] code: the target program is [[Assembly language|disassembled]] and the appropriate code is substituted for a null subroutine that just returns the value expected by the caller.
A '''stubroutine''' (also known as a '''stub function''', '''null script''', '''null subroutine''', or '''[[null function]]''') is a [[scripting language|command script]] or [[subroutine|program subroutine]] which does nothing but return a constant value. They are used during [[computer programming|program development]], where the functional implementation of routines is delayed while other routines are developed. This is also one of the techniques used by the [[Copyright infringement of software|software cracking]] community to bypass [[callback (computer science)|callbacks]] and [[software license|license-checking]] code: the target program is [[Assembly language|disassembled]] and the appropriate code is substituted for a null subroutine that just returns the value expected by the caller.

Revision as of 03:26, 31 May 2020

A stubroutine (also known as a stub function, null script, null subroutine, or null function) is a command script or program subroutine which does nothing but return a constant value. They are used during program development, where the functional implementation of routines is delayed while other routines are developed. This is also one of the techniques used by the software cracking community to bypass callbacks and license-checking code: the target program is disassembled and the appropriate code is substituted for a null subroutine that just returns the value expected by the caller.