~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcdocs/stringex/ex11.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Program Example11;
 
2
 
 
3
Uses strings;
 
4
 
 
5
{ Program to demonstrate the StrCat function. }
 
6
 
 
7
Const P1 : PChar = 'This is a PChar String.';
 
8
 
 
9
Var P2 : PChar;
 
10
 
 
11
begin
 
12
  P2:=StrAlloc (StrLen(P1)*2+1);
 
13
  StrMove (P2,P1,StrLen(P1)+1); { P2=P1 }
 
14
  StrCat (P2,P1);               { Append P2 once more }
 
15
  Writeln ('P2 : ',P2);
 
16
  StrDispose(P2);
 
17
end.